3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $assocArray = array(); $assocArray[0] = "a"; $assocArray[1] = "b"; $assocArray[2] = "c"; // At some point, remove a no longer needed element and replace it with // a new element at some point later. unset($assocArray[1]); // ... $assocArray[1] = "d"; echo implode(", ", $assocArray); // "a, c, d"
based on fMRIp
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
a, c, d
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/CoihT on line 13
Process exited with code 255.