3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //echo (poof())[0]; echo (poof())->one; function array() { return [ "unicorn!", "wand!", "magic!" ]; } function object() { return { 'one' => "unicorn!", 'two' => "wand!", 'three' => "magic!" ]; }
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ',' or ';' in /in/7UHuS on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/7UHuS on line 4
Process exited with code 255.