3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sequenceAlphaNumeric($code, $count = 1) { $strLength = strlen($code); $base10 = base_convert($code, 32, 10); var_dump($code, $base10);die; $result = base_convert((int) $base10 + $count, 10, 36); $result = str_pad($result, $strLength, '0', STR_PAD_LEFT); $result = strtoupper($result); return $result; } echo sequenceAlphaNumeric('09');
Output for git.master, git.master_jit, rfc.property-hooks
string(2) "09" string(1) "9"

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