3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array("one", "two", "three"); foreach ($arr as $key => $value) { echo "Key: $key; Value: $value<br />\n"; } ?>
Output for 4.3.0 - 7.1.0
Key: 0; Value: one<br /> Key: 1; Value: two<br /> Key: 2; Value: three<br />