3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r([1=>’value1’, ‘1’=>’value2’,’01'=>’value3’]);
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
Parse error: syntax error, unexpected ''=>’value3’]);' (T_ENCAPSED_AND_WHITESPACE), expecting ']' in /in/fWdrf on line 2
Process exited with code 255.

preferences:
187 ms | 1395 KiB | 64 Q