3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('a' => '1', 'b' => 2, 'c' => '3'); foreach($a as $key=>$value) { echo "key = " . $key . " value = " . $value; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
key = a value = 1key = b value = 2key = c value = 3