3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( 1 => 'Номер один', 'two' => 2, 'three' => 'Это номер три', 4 => 4 ); $json = json_encode(1 => 'Номер один'); echo $json;
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /in/EM1AZ on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /in/EM1AZ on line 10
Process exited with code 255.