3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function breakCode() { return 'wrong'; } function bar($bar) { $bar = $this->breakCode(); var_dump(func_get_args()); } } (new Foo())->bar('correct');

preferences:
43.96 ms | 404 KiB | 5 Q