3v4l.org

run code in 200+ 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); $num+=4; echo (" $num\n"); echo(strtotime('00:00 +1 hour')); ?>
Output for 5.0.0 - 5.4.14
45 04 2013 8 1367190000
Output for 4.3.6 - 4.4.9
45 04 2013 8 1367190034
Output for 4.3.0 - 4.3.5
45 04 2013 8 1367197174