3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array("one", "two", "three"); reset($arr); while (list($key, $value) = each($arr)) { echo "Key: $key; Value: $value<br />\n"; } foreach ($arr as $key => $value) { echo "Key: $key; Value: $value<br />\n"; switch($key) { case:"one" echo $key; } } ?>
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected ':' in /in/Z7OMV on line 12
Process exited with code 255.