3v4l.org

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

preferences:
30.21 ms | 402 KiB | 5 Q