3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('KEYS', 1000); $a = array(); function fill(&$arr) { for ($i = 1; $i <= 10; $i++) { $arr['key-' . $i] = $i; } } *function read_key(&$arr) { for ($i = 1; $i <= KEYS; $i++) { for ($j = 1; $j <= 10; $i++) { //$v = $arr['key-' . $i]; } } } function for_each(&$arr) { for ($i = 1; $i <= 1000; $i++) { foreach ($arr as $key => $value) { //$v = $value; } } } fill($a); //read_key($a); for_each($a);
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected '*' in /in/B16TB on line 13
Process exited with code 255.