3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $myarray = array_push("Google" => 'lol'); var_dump($myarray);
based on 9eiFh
Output for 7.3.0 - 7.3.4
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')' in /in/b1dNN on line 3
Process exited with code 255.
Output for 7.1.25 - 7.2.17
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')' in /in/b1dNN on line 3
Process exited with code 255.