3v4l.org

run code in 200+ 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 - 5.3.21, 5.3.23 - 5.6.38, 7.0.0 - 7.2.12
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 hhvm-3.22.0
2 1010001010000000100010000001011 8 12120042013 10 1363166219 16 5140440b 24 734gg0b Warning: Invalid argument: Invalid tobase: 62 in /in/KUGbO on line -1 62
Output for hhvm-3.13.2, hhvm-3.21.3
2 1010001010000000100010000001011 8 12120042013 10 1363166219 16 5140440b 24 734gg0b Warning: Invalid argument: Invalid tobase: 62 in /in/KUGbO on line 5 62
Output for hhvm-3.10.1 - 3.12.14, hhvm-3.15.4 - 3.21.0
2 1010001010000000100010000001010 8 12120042012 10 1363166218 16 5140440a 24 734gg0a Warning: Invalid argument: Invalid tobase: 62 in /in/KUGbO on line 5 62
Output for 5.3.22
2 1010001010000000100010000001011 8 12120042013 10 1363166219 16 5140440b 24 734gg0b 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