3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 0; $a = []; $a[++$i] = $i; var_dump($a);
Output for 5.4.0 - 7.1.0
array(1) { [1]=> int(1) }
Output for 5.2.15 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/KARvR on line 3
Process exited with code 255.