3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = time(); $l = 10; foreach(array(2,8,10,16,24,32) as $base) echo str_pad($base, 2).' '.str_pad(base_convert($t, 10, $base), $l)."\n"; echo str_pad(64, 2).' '.str_pad(base64_encode(pack('I', $t)), $l)."\n";
Output for 4.3.0 - 7.1.0
2 1010001010000000100010111110101 8 12120042765 10 1363166709 16 514045f5 24 734ggkl 32 18k0hfl 64 9UVAUQ==