3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '138201162401719'; $arr = str_split($str); $i = 0; while ($i < count($arr)) { $n = substr($str, $i, 2); echo $n."\n"; $firstchar = substr($n, 0, 1); if ($n < 26 && $firstchar != 0) { $result[] = substr($str, $i, 2); $i += 2; } else { $result[] = substr($str, $i, 1); $i++; } } echo implode(', ', $result);
Output for git.master, git.master_jit, rfc.property-hooks
13 82 20 11 62 24 01 17 19 13, 8, 20, 11, 6, 24, 0, 17, 19

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
38.5 ms | 405 KiB | 9 Q