3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dataset = array(0 => "one", 1 => "two"); reset($dataset); while ($a = current($dataset)) { var_dump($a); next($dataset); if ($a == "one") { unset($dataset[0]): } } var_dump($dataset);
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected ':', expecting ';' in /in/788lM on line 9
Process exited with code 255.