3v4l.org

run code in 300+ PHP versions simultaneously
<?php $batchIn = "1111111111111122222222222222"; $batchSplit = array( str_split($batchIn, 14)) foreach (array($batchSplit) as $value) { echo $value; php?>
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in /in/BnFFM on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_FOREACH in /in/BnFFM on line 6
Process exited with code 255.

preferences:
183.05 ms | 1395 KiB | 67 Q