3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result = 0; $array = array(0,1,2,3,4,5,6,7,8,9,10); foreach($array as number){ $result += $number; }
Output for 5.5.0 - 5.5.12
Parse error: syntax error, unexpected ')', expecting '(' in /in/pUVbs on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected ')', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in /in/pUVbs on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in /in/pUVbs on line 4
Process exited with code 255.