3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "45-04-2013"; $s1 = strtok($str,"-"); $s2 = strtok("-"); $s3 = strtok("\n"); echo ("$s1 $s2 $s3"); $num = intval($s2) +4; echo (" $num\n"); echo(strtotime('16-04-2013 00:00 +1 days')); ?>
Output for 5.1.3 - 7.1.0
45 04 2013 8 1366149600
Output for 5.1.0 - 5.1.2
45 04 2013 8
Output for 4.4.3 - 4.4.4, 5.0.0 - 5.0.5
45 04 2013 8 1633384800
Output for 4.4.9
45 04 2013 8 1633384858
Output for 4.4.5 - 4.4.8
45 04 2013 8 1633384859
Output for 4.3.11 - 4.4.2
45 04 2013 8 1633384801
Output for 4.3.6 - 4.3.10
45 04 2013 8 1633384802
Output for 4.3.3 - 4.3.5
45 04 2013 8 1633391942
Output for 4.3.0 - 4.3.2
45 04 2013 8 1633391943