3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = time(); $l = 10; foreach(array(2,8,10,16) as $base) echo str_pad(base_convert($t, 10, $base), $l).PHP_EOL;
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
1010001010000000100001011110111 12120041367 1363165943 514042f7
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/hPnDe on line 5 1010001010000000100001011110111PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/hPnDe on line 5 12120041367PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/hPnDe on line 5 1363165943PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/hPnDe on line 5 514042f7 PHP_EOL