3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = time(); $l = 10; foreach(array(2,8,10,16,24,62) 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 1010001010000000100010000001010 8 12120042012 10 1363166218 16 5140440a 24 734gg0a Warning: base_convert(): Invalid `to base' (62) in /in/KUGbO on line 5 62
Output for 4.3.0 - 4.3.1
2 1010001010000000100010000001010 8 12120042012 10 1363166218 16 5140440a 24 734gg0a Warning: base_convert() [http://www.php.net/function.base-convert]: Invalid `to base' (62) in /in/KUGbO on line 5 62