3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sequenceAlphaNumeric($code, $count = 1) { $strLength = strlen($code); $base10 = base_convert($code, 45, 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
Fatal error: Uncaught ValueError: base_convert(): Argument #2 ($from_base) must be between 2 and 36 (inclusive) in /in/tQAUv:6 Stack trace: #0 /in/tQAUv(6): base_convert('09', 45, 10) #1 /in/tQAUv(15): sequenceAlphaNumeric('09') #2 {main} thrown in /in/tQAUv on line 6
Process exited with code 255.

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