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:
53.36 ms | 402 KiB | 5 Q