3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Goofy { public function hello() { echo 'Hello World!', PHP_EOL; } } (new Goofy(this_does_not_exist()))->hello();
based on RhIn3
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function this_does_not_exist() in /in/8YANf:10 Stack trace: #0 {main} thrown in /in/8YANf on line 10
Process exited with code 255.
Output for 5.4.1 - 7.0.20
Hello World!
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/8YANf on line 10
Process exited with code 255.