3v4l.org

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