3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = time(); $l = 10; foreach(array(2,8,10,16,24) as $base) echo str_pad(base_convert($t, 10, $base), $l).PHP_EOL;
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1010001010000000100001100000110 12120041406 1363165958 51404306 734gfde
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SCbah on line 5 1010001010000000100001100000110PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SCbah on line 5 12120041406PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SCbah on line 5 1363165958PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SCbah on line 5 51404306 PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SCbah on line 5 734gfde PHP_EOL