3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //Source: https://bugs.php.net/bug.php?id=63898 $key = "Foo " $array = array($key => "ñí"); print_r($array); $json = json_encode($array); echo $json."\n"; print_r(json_decode($json));
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '$array' (T_VARIABLE) in /in/lg66J on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/lg66J on line 5
Process exited with code 255.