3v4l.org

run code in 300+ PHP versions simultaneously
<?php function evalCrossTotal($strMD5) { $intTotal = 0; $arrMD5Chars = str_split($strMD5, 1); print $arrMD5Chars[]; foreach ($arrMD5Chars as $value) { $intTotal += '0x0'.$value; } return $intTotal; } evalCrossTotal(md5('something')); print md5('something');
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25, 5.5.0 - 5.5.9
Fatal error: Cannot use [] for reading in /in/D6mHb on line 6
Process exited with code 255.

preferences:
189.11 ms | 1387 KiB | 72 Q