3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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.4.20
Parse error: syntax error, unexpected '=', expecting ',' or ')' in /in/m2jOk on line 7
Process exited with code 255.