3v4l.org

run code in 300+ PHP versions simultaneously
<?php function accum($s) { $split = str_split($s, 1); $out = ''; foreach ($split as $idx => $char) { if ($idx > 0) { $out .= '-'; } $out .= ucfirst(str_repeat($char, $idx + 1)); } return $out; } echo accum('zpglnrxqenu');
Output for git.master, git.master_jit, rfc.property-hooks
Z-Pp-Ggg-Llll-Nnnnn-Rrrrrr-Xxxxxxx-Qqqqqqqq-Eeeeeeeee-Nnnnnnnnnn-Uuuuuuuuuuu

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:
35.31 ms | 401 KiB | 8 Q