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('00:00 +1 hr')); ?>
Output for 5.6.28, 7.1.0RC3 - 7.1.0
45 04 2013 8 1367190000
Output for 7.0.6
45 04 2013 8 1462230000
Output for 5.6.14, 7.0.5
45 04 2013 8 1459551600
Output for 7.0.4
45 04 2013 8 1457564400
Output for 7.0.3
45 04 2013 8 1458255600
Output for 7.0.2
45 04 2013 8 1458601200
Output for 7.0.1
45 04 2013 8 1458687600
Output for 7.0.0
45 04 2013 8 1458946800
Output for hhvm-3.12.0
45 04 2013 8 1457737200
Output for hhvm-3.10.0
45 04 2013 8 1459292400
Output for 5.6.21
45 04 2013 8 1462143600
Output for 5.6.20
45 04 2013 8 1460156400
Output for 5.6.19
45 04 2013 8 1457305200
Output for 5.6.18
45 04 2013 8 1457996400
Output for 5.6.17
45 04 2013 8 1458342000
Output for 5.6.16
45 04 2013 8 1459119600
Output for 5.6.15
45 04 2013 8 1459206000
Output for 5.6.13
45 04 2013 8 1460674800
Output for 5.6.12
45 04 2013 8 1461020400
Output for 5.6.11
45 04 2013 8 1461366000
Output for 5.6.10
45 04 2013 8 1461538800
Output for 5.6.9
45 04 2013 8 1461711600
Output for 5.6.8
45 04 2013 8 1461884400
Output for 5.5.35
45 04 2013 8 1463871600
Output for 5.5.34
45 04 2013 8 1460329200
Output for 5.5.33
45 04 2013 8 1457391600
Output for 5.5.32
45 04 2013 8 1458169200
Output for 5.5.31
45 04 2013 8 1458428400
Output for 5.5.30
45 04 2013 8 1459465200
Output for 5.5.29
45 04 2013 8 1460761200
Output for 5.5.28
45 04 2013 8 1461193200
Output for 5.5.27
45 04 2013 8 1461279600
Output for 5.5.26
45 04 2013 8 1461625200
Output for 5.5.25
45 04 2013 8 1461798000
Output for 5.5.24
45 04 2013 8 1463958000
Output for 5.1.3 - 5.4.45
45 04 2013 8 1455836400
Output for 5.1.0 - 5.1.2
45 04 2013 8
Output for 4.3.0 - 5.0.5
45 04 2013 8 -1