3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = array(1) { [1]=> int(1) }; if($var["1"] > 0) { echo "something"; }
Output for 7.1.0 - 7.1.24, 7.2.0 - 7.2.12
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /in/37H0K on line 3
Process exited with code 255.
Output for 5.6.38
Parse error: syntax error, unexpected '{' in /in/37H0K on line 3
Process exited with code 255.

preferences:
179.27 ms | 1395 KiB | 46 Q