3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = ""; $qualityList = array("7", "m", "m7", "maj7", "sus2", "sus4", "dim", ""); foreach ($qualityList as $key => $value) { echo "key is " . $key . " and value is " . $value; } ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
key is 0 and value is 7key is 1 and value is mkey is 2 and value is m7key is 3 and value is maj7key is 4 and value is sus2key is 5 and value is sus4key is 6 and value is dimkey is 7 and value is