3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array('a' => 'b'); for(reset($arr); list($k,$v) = each($arr);) { var_dump($k, $v); }
Output for 7.2.0
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/7BGL6 on line 4 string(1) "a" string(1) "b"
Output for 4.3.0 - 7.1.10
string(1) "a" string(1) "b"