3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo strtotime(str_replace('.', '-', "2014.10.09")) . "\n\r"; echo strtotime('6 month ago') . "\n\r"; echo strtotime('3 years ago');
based on 8Wqc4
Output for 5.6.28, 7.0.20 - 7.2.0
1412805600 1428482435 1349685635
Output for 7.0.6
1412805600 1446549327 1367576127
Output for 7.0.5
1412805600 1443826744 1364943544
Output for 7.0.4
1412805600 1441878132 1362912132
Output for 7.0.3
1412805600 1442571952 1363605952
Output for 7.0.2
1412805600 1442939019 1363973019
Output for 7.0.1
1412805600 1443041197 1364075197
Output for 7.0.0
1412805600 1443305801 1364339801
Output for 5.6.21
1412805600 1446445713 1367472513
Output for 5.6.20
1412805600 1444427405 1365544205
Output for 5.6.19
1412805600 1441647857 1362681857
Output for 5.6.18
1412805600 1442283493 1363317493
Output for 5.6.17
1412805600 1442673273 1363707273
Output for 5.6.16
1412805600 1443399233 1364433233
Output for 5.6.15
1412805600 1443488968 1364522968
Output for 5.6.14
1412805600 1443756042 1364872842
Output for 5.6.13
1412805600 1444893593 1366010393
Output for 5.6.12
1412805600 1445289432 1366406232
Output for 5.6.11
1412805600 1445573606 1366690406
Output for 5.6.10
1412805600 1445756399 1366869599
Output for 5.6.9
1412805600 1445947452 1367060652
Output for 5.6.8
1412805600 1446149657 1367262857
Output for 5.5.35
1412805600 1448187305 1369214105
Output for 5.5.34
1412805600 1444522288 1365639088
Output for 5.5.33
1412805600 1441744936 1362778936
Output for 5.5.32
1412805600 1442463949 1363497949
Output for 5.5.31
1412805600 1442769471 1363803471
Output for 5.5.30
1412805600 1443668651 1364785451
Output for 5.5.29
1412805600 1445030878 1366147678
Output for 5.5.28
1412805600 1445387840 1366504640
Output for 5.5.27
1412805600 1445482449 1366599249
Output for 5.5.26
1412805600 1445851937 1366965137
Output for 5.5.25
1412805600 1446047924 1367161124
Output for 5.5.24
1412805600 1448320001 1369346801
Output for 5.4.44 - 5.4.45
1412805600 1428482440 1349685640
Output for 5.4.30 - 5.4.43
1412805600 1428482441 1349685641
Output for 5.4.18 - 5.4.29
1412805600 1428482442 1349685642
Output for 5.4.8 - 5.4.17
1412805600 1428482443 1349685643
Output for 5.4.7
1412805600 1430092903 1351296103
Output for 5.4.6
1412805600 1430098201 1351301401
Output for 5.4.5
1412805600 1430103615 1351306815
Output for 5.4.4
1412805600 1430109452 1351312652
Output for 5.4.3
1412805600 1430115544 1351318744
Output for 5.4.2
1412805600 1430121829 1351325029
Output for 5.3.29
1412805600 1430452957 1351659757
Output for 5.3.28
1412805600 1430460685 1351667485
Output for 5.3.27
1412805600 1430543568 1351836768
Output for 5.3.26
1412805600 1430550839 1351844039
Output for 5.3.25
1412805600 1430556207 1351849407
Output for 5.3.24
1412805600 1430560494 1351853694
Output for 5.3.23
1412805600 1430566305 1351859505
Output for 5.3.22
1412805600 1430571741 1351864941
Output for 5.3.21
1412805600 1430575352 1351868552
Output for 5.3.20
1412805600 1430578973 1351872173
Output for 5.3.19
1412805600 1430584087 1351877287
Output for 5.3.18
1412805600 1430584486 1351877686