3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = time(); $l = 10; foreach(array(2,8,10,16,24,63) as $base) echo str_pad($base, 2).' '.str_pad(base_convert($t, 10, $base), $l)."\n";
Output for 4.3.2 - 7.1.0
2 1010001010000000100001110100011 8 12120041643 10 1363166115 16 514043a3 24 734gfk3 Warning: base_convert(): Invalid `to base' (63) in /in/3nefB on line 5 63
Output for 4.3.0 - 4.3.1
2 1010001010000000100001110100011 8 12120041643 10 1363166115 16 514043a3 24 734gfk3 Warning: base_convert() [http://www.php.net/function.base-convert]: Invalid `to base' (63) in /in/3nefB on line 5 63