3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php empty(array())
Output for 5.5.0 - 5.6.30, 7.0.0 - 7.1.1
Parse error: syntax error, unexpected end of file in /in/p99QV on line 2
Process exited with code 255.
Output for hhvm-3.11.1 - 3.15.4
Fatal error: Uncaught Error: syntax error, unexpected $end in /in/p99QV:2 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.1
Fatal error: syntax error, unexpected $end in /in/p99QV on line 2
Process exited with code 255.
Output for 5.4.0 - 5.4.45
Parse error: syntax error, unexpected 'array' (T_ARRAY) in /in/p99QV on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_ARRAY in /in/p99QV on line 2
Process exited with code 255.