3v4l.org

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

preferences:
181.46 ms | 1395 KiB | 62 Q