3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attempts = array(); $localTaskId = 3; isset ($x =& $attempts[$localTaskId]) ? (++ $x) : ($x = 1); echo $attempts[$localTaskId]."\n"; isset ($x) ? (++ $x) : ($x = 1); echo $attempts[$localTaskId]."\n";
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.20
Parse error: syntax error, unexpected '=', expecting ',' or ')' in /in/m2jOk on line 7
Process exited with code 255.

preferences:
181.87 ms | 1395 KiB | 56 Q