3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array("Pop ","Hon ","Bob ","Van "); foreach($x as $keys => $q){ print_r("Index: ".$keys." value: ".$q);} ?>
based on 3PLv3
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Index: 0 value: Pop Index: 1 value: Hon Index: 2 value: Bob Index: 3 value: Van