3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array ( 'mv_fname' => '1.3', 'mv_lname' => '1.6', 'mv_project' => '2', 'mv_email' => '3', 'mv_addr1' => '4.1', 'mv_addr2' => '4.2', 'mv_city' => '4.3', 'mv_prov' => '4.4', 'mv_pcode' => '4.5', 'mv_country' => '4.6', 'mv_phone' => '5', 'mv_recovery_email' => '11', 'mv_age' => '16', 'mv_website' => '12', 'mv_gender' => '17', 'mv_instrument' => '18', 'mv_twitter' => '19', 'mv_pic' => '26', 'mv_newsletter' => '23' ); foreach ($arr as $key => $value) { echo "Key: $key; Value: $value<br />\n"; } ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Key: mv_fname; Value: 1.3<br /> Key: mv_lname; Value: 1.6<br /> Key: mv_project; Value: 2<br /> Key: mv_email; Value: 3<br /> Key: mv_addr1; Value: 4.1<br /> Key: mv_addr2; Value: 4.2<br /> Key: mv_city; Value: 4.3<br /> Key: mv_prov; Value: 4.4<br /> Key: mv_pcode; Value: 4.5<br /> Key: mv_country; Value: 4.6<br /> Key: mv_phone; Value: 5<br /> Key: mv_recovery_email; Value: 11<br /> Key: mv_age; Value: 16<br /> Key: mv_website; Value: 12<br /> Key: mv_gender; Value: 17<br /> Key: mv_instrument; Value: 18<br /> Key: mv_twitter; Value: 19<br /> Key: mv_pic; Value: 26<br /> Key: mv_newsletter; Value: 23<br />