3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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');
based on Jj5Pn
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0rc3
string(2) "09" string(1) "9"