3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public function helloWorld(){ echo 'test'; } }; (new Test( testTest() ))->helloWorld();
based on 2H5Bd
Output for 7.1.5 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function testTest() in /in/EevNa:6 Stack trace: #0 {main} thrown in /in/EevNa on line 6
Process exited with code 255.
Output for 7.1.0
Fatal error: Uncaught Error: Call to undefined function testTest() in /in/EevNa:5 Stack trace: #0 {main} thrown in /in/EevNa on line 5
Process exited with code 255.
Output for 5.4.0 - 7.0.20
test