3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function test2(string $test, int $test2) { print_r($test); print_r($test2); } } $test = new Test(); $test->test2('test', 1);

preferences:
45.3 ms | 402 KiB | 5 Q