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 2A2Pd
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Index: 0value: Pop Index: 1value: Hon Index: 2value: Bob Index: 3value: Van