3v4l.org

run code in 150+ 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 hhvm-3.10.0 - 3.12.0
1 2
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.