3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo { public function bar($x, $y = false); } class baz implements foo { public function bar($x, $y) { var_dump(func_get_args()); } } $test = new baz(); $test->bar(4, true);

preferences:
45.66 ms | 402 KiB | 5 Q