3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $l = array('test' => 'a', 'test2' => 'b'); foreach($l as $k => $v){ var_dump($k); print($k . ": " . $v); echo "\n"; var_dump($k); echo "\n"; }
Output for 4.3.0 - 7.1.0
string(4) "test" test: a string(4) "test" string(5) "test2" test2: b string(5) "test2"