diff --git a/examples/micro_bench.php b/examples/micro_bench.php index 50be6743..223d5860 100644 --- a/examples/micro_bench.php +++ b/examples/micro_bench.php @@ -33,7 +33,7 @@ function simpleicall(int $n) class Foo { static $a = 12; - public $b = 0; + public int $b = 0; const TEST = 23; static function read_static($n) { @@ -69,13 +69,13 @@ class Foo { } } - function read_prop($n) { + function read_prop(int $n) { for ($i = 0; $i < $n; ++$i) { $x = $this->b; } } - function write_prop($n) { + function write_prop(int $n) { for ($i = 0; $i < $n; ++$i) { $this->b = 0; } diff --git a/examples/python/sys.php b/examples/python/sys.php index 6f01698f..295a00a5 100644 --- a/examples/python/sys.php +++ b/examples/python/sys.php @@ -1,8 +1,13 @@ full_version); +} function main() { @@ -13,15 +18,6 @@ function main() -use numpy as np; - -function np() -{ - print(np::$module); - print(np::version->full_version); -} - - $array["hello"] = $a; $array["world"] = $b;