3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = time(); $l = 10; foreach(array(2,8,10,16,24) as $base) echo str_pad($base, 2).' '.str_pad(base_convert($t, 10, $base), $l).PHP_EOL;
Output for 4.3.10 - 4.3.11, 4.4.0 - 4.4.9, 5.0.2 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.37, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.6
2 1010001010000000100001100101100 8 12120041454 10 1363165996 16 5140432c 24 734gff4
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/msMal on line 5 2 1010001010000000100001100101100PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/msMal on line 5 8 12120041454PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/msMal on line 5 10 1363165996PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/msMal on line 5 16 5140432c PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/msMal on line 5 24 734gff4 PHP_EOL

preferences:
136.21 ms | 403 KiB | 214 Q