3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = ""; $qualityList = array("7", "m", "m7", "maj7", "sus2", "sus4", "dim", ""); foreach ($qualityList as $idx => $qual) { echo "key is " . $idx . " and value is " . $qual; } ?>
Output for 4.3.0 - 7.2.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