3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x->$foo[5]();
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: x in /in/LqhNu on line 2 Notice: Undefined variable: foo in /in/LqhNu on line 2 Notice: Trying to get property of non-object in /in/LqhNu on line 2 Fatal error: Uncaught Error: Function name must be a string in /in/LqhNu:2 Stack trace: #0 {main} thrown in /in/LqhNu on line 2
Process exited with code 255.
Output for hhvm-3.12.0
Notice: Undefined variable: x in /in/LqhNu on line 2 Notice: Undefined variable: foo in /in/LqhNu on line 2 Fatal error: Method name must be a string in /in/LqhNu on line 2
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.2.14 - 5.6.28
Notice: Undefined variable: foo in /in/LqhNu on line 2 Fatal error: Method name must be a string in /in/LqhNu on line 2
Process exited with code 255.