3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dataset = array("a" > "one", "b" > "two", "c" => "three"); function foo($a, $b) { return false; } foreach($dataset as $key => $val) { $dataset[$key] = foo($val, 'bar'); var_dump($dataset[$key], $key, $val, "<br/>\n"); }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
bool(false) int(0) bool(false) string(6) "<br/> " bool(false) int(1) bool(false) string(6) "<br/> " bool(false) string(1) "c" string(5) "three" string(6) "<br/> "
Output for hhvm-3.10.0

Process exited with code 153.