3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //echo (poof())[0]; echo object()->one; function array() { return [ "unicorn!", "wand!", "magic!" ]; } function object() { return { 'one' => "unicorn!", 'two' => "wand!", 'three' => "magic!" ]; }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.12, 5.4.14
Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting identifier (T_STRING) or '(' in ZMnmI on line 6
Process exited with code 255.
Output for 5.4.13
Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting identifier (T_STRING) or '(' in /in/ZMnmI on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.22, 5.3.24
Parse error: syntax error, unexpected T_ARRAY, expecting T_STRING or '(' in ZMnmI on line 6
Process exited with code 255.
Output for 5.3.23
Parse error: syntax error, unexpected T_ARRAY, expecting T_STRING or '(' in /in/ZMnmI on line 6
Process exited with code 255.