3v4l.org

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

preferences:
30.63 ms | 402 KiB | 5 Q