3v4l.org

run code in 300+ PHP versions simultaneously
<?php function evalCrossTotal($strMD5) { $intTotal = 0; $arrMD5Chars = str_split($strMD5, 1); 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 end of file in /in/HJ4Qi on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/HJ4Qi on line 12
Process exited with code 255.

preferences:
183.63 ms | 1386 KiB | 62 Q