3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Start $c = count(get_defined_vars()); $mystring = null; $v = get_defined_vars(); var_dump(array_slice($c, $v + 1));
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Unsupported operand types in /in/UmIH7:8 Stack trace: #0 {main} thrown in /in/UmIH7 on line 8
Process exited with code 255.
Output for 4.3.2 - 5.6.28
Fatal error: Unsupported operand types in /in/UmIH7 on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Unsupported operand types in /in/UmIH7 on line 8