3v4l.org

run code in 300+ PHP versions simultaneously
<?php function evalCrossTotal($strMD5) { $intTotal = 0; $arrMD5Chars = str_split($strMD5, 1); print $strMD5 foreach ($arrMD5Chars as $value) { $intTotal += '0x0'.$value; } return $intTotal; } evalCrossTotal(md5('something'))
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in /in/1quB0 on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_FOREACH in /in/1quB0 on line 7
Process exited with code 255.

preferences:
188.59 ms | 1395 KiB | 62 Q