3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo{} class test{ function test1() { return foo(); } } $a = new test1(); var_dump($a->test1); ?>
based on BFn7b
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Error: Class 'test1' not found in /in/NYcXj:16 Stack trace: #0 {main} thrown in /in/NYcXj on line 16
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Class 'test1' not found in /in/NYcXj on line 16
Process exited with code 255.