3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo str_pad('23423', 8, '0'); echo PHP_EOL; echo str_pad('', 8, '0'); echo PHP_EOL; echo str_pad(null, 8, '0');
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
23423000 00000000 00000000
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
23423000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/PoD9c on line 4 PHP_EOL00000000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/PoD9c on line 6 PHP_EOL00000000