3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = [10 => [30, 25]]; $transformedArray = each($array); print_r($transformedArray);
based on KPaaT
Output for 7.2.0
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/EQY8s on line 4 Array ( [1] => Array ( [0] => 30 [1] => 25 ) [value] => Array ( [0] => 30 [1] => 25 ) [0] => 10 [key] => 10 )
Output for 5.4.11 - 7.1.10
Array ( [1] => Array ( [0] => 30 [1] => 25 ) [value] => Array ( [0] => 30 [1] => 25 ) [0] => 10 [key] => 10 )
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/EQY8s on line 3
Process exited with code 255.