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); var_dump($k); echo "\n"; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(4) "test" test: astring(4) "test" string(5) "test2" test2: bstring(5) "test2"