3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { function B() { echo "TEST"; } } $A = new A(); $test = $A->B; $test();
Output for 7.0.0 - 7.2.6
Notice: Undefined property: A::$B in /in/FVrQW on line 11 Fatal error: Uncaught Error: Function name must be a string in /in/FVrQW:12 Stack trace: #0 {main} thrown in /in/FVrQW on line 12
Process exited with code 255.
Output for 5.2.6 - 5.6.28
Notice: Undefined property: A::$B in /in/FVrQW on line 11 Fatal error: Function name must be a string in /in/FVrQW on line 12
Process exited with code 255.
Output for 5.0.0 - 5.2.5
Notice: Undefined property: A::$B in /in/FVrQW on line 11 Fatal error: Function name must be a string in /in/FVrQW on line 12
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Undefined property: B in /in/FVrQW on line 11 Fatal error: Call to undefined function: () in /in/FVrQW on line 12
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined property: B in /in/FVrQW on line 11 Fatal error: Call to undefined function: () in /in/FVrQW on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined property: B in /in/FVrQW on line 11 Fatal error: Call to undefined function: () in /in/FVrQW on line 12