3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo strtotime("now"), "\n"; echo strtotime("10 September 2000"), "\n"; echo strtotime("+1 day"), "\n"; echo strtotime("+1 week"), "\n"; echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n"; echo strtotime("next Thursday"), "\n"; echo strtotime("last Monday"), "\n"; die; abstract class T { static public $instanses; final private function __construct(){ } public static function getInstance() { if (!(static::$instanses instanceof static)) { static::$instanses = new static; } return static::$instanses; } } class A extends T { static public $instanses; } class B extends A { static public $instanses; } $t = A::getInstance(); var_dump($t); $t1 = B::getInstance(); var_dump($t1); new B(); ?>
based on DeKs9
Output for 5.6.28, 7.0.20 - 7.2.0
1448991032 968536800 1449077432 1449595832 1449783034 1449097200 1448838000
Output for 7.0.6
1462298022 968536800 1462384422 1462902822 1463090024 1462399200 1462140000
Output for 7.0.5
1459664001 968536800 1459750401 1460268801 1460456003 1459980000 1459116000
Output for 7.0.4
1457636881 968536800 1457723281 1458241681 1458428883 1458169200 1457305200
Output for 7.0.3
1458332957 968536800 1458419357 1458937757 1459121359 1458774000 1457910000
Output for 7.0.2
1458700991 968536800 1458787391 1459302191 1459489393 1458774000 1458514800
Output for 7.0.1
1458799185 968536800 1458885585 1459400385 1459587587 1459375200 1458514800
Output for 7.0.0
1459061651 968536800 1459148051 1459666451 1459853653 1459375200 1458514800
Output for 5.6.21
1462194106 968536800 1462280506 1462798906 1462986108 1462399200 1461535200
Output for 5.6.20
1460265279 968536800 1460351679 1460870079 1461057281 1460584800 1459720800
Output for 5.6.19
1457407253 968536800 1457493653 1458012053 1458199255 1457564400 1457305200
Output for 5.6.18
1458043844 968536800 1458130244 1458648644 1458835846 1458169200 1457910000
Output for 5.6.17
1458431154 968536800 1458517554 1459035954 1459219556 1458774000 1457910000
Output for 5.6.16
1459151000 968536800 1459237400 1459755800 1459943002 1459375200 1458514800
Output for 5.6.15
1459240374 968536800 1459326774 1459845174 1460032376 1459375200 1459116000
Output for 5.6.14
1459592571 968536800 1459678971 1460197371 1460384573 1459980000 1459116000
Output for 5.6.13
1460732046 968536800 1460818446 1461336846 1461524048 1461189600 1460325600
Output for 5.6.12
1461129663 968536800 1461216063 1461734463 1461921665 1461189600 1460930400
Output for 5.6.11
1461498355 968536800 1461584755 1462103155 1462290357 1461794400 1460930400
Output for 5.6.10
1461592184 968536800 1461678584 1462196984 1462384186 1461794400 1460930400
Output for 5.6.9
1461783484 968536800 1461869884 1462388284 1462575486 1461794400 1461535200
Output for 5.6.8
1461988121 968536800 1462074521 1462592921 1462780123 1462399200 1461535200
Output for 5.5.35
1463954477 968536800 1464040877 1464559277 1464746479 1464213600 1463349600
Output for 5.5.34
1460359561 968536800 1460445961 1460964361 1461151563 1460584800 1459720800
Output for 5.5.33
1457504010 968536800 1457590410 1458108810 1458296012 1457564400 1457305200
Output for 5.5.32
1458230626 968536800 1458317026 1458835426 1459022628 1458774000 1457910000
Output for 5.5.31
1458528682 968536800 1458615082 1459129882 1459317084 1458774000 1457910000
Output for 5.5.30
1459506339 968536800 1459592739 1460111139 1460298341 1459980000 1459116000
Output for 5.5.29
1460869933 968536800 1460956333 1461474733 1461661935 1461189600 1460325600
Output for 5.5.28
1461227815 968536800 1461314215 1461832615 1462019817 1461794400 1460930400
Output for 5.5.27
1461320376 968536800 1461406776 1461925176 1462112378 1461794400 1460930400
Output for 5.5.26
1461688216 968536800 1461774616 1462293016 1462480218 1461794400 1461535200
Output for 5.5.25
1461887619 968536800 1461974019 1462492419 1462679621 1462399200 1461535200
Output for 5.5.24
1464069904 968536800 1464156304 1464674704 1464861906 1464213600 1463954400
Output for 5.4.45
1448991034 968536800 1449077434 1449595834 1449783036 1449097200 1448838000
Output for 5.4.44
1448991035 968536800 1449077435 1449595835 1449783037 1449097200 1448838000
Output for 5.4.41 - 5.4.43
1448991036 968536800 1449077436 1449595836 1449783038 1449097200 1448838000
Output for 5.4.38 - 5.4.40
1448991037 968536800 1449077437 1449595837 1449783039 1449097200 1448838000
Output for 5.4.34 - 5.4.37
1448991038 968536800 1449077438 1449595838 1449783040 1449097200 1448838000
Output for 5.3.29, 5.4.28 - 5.4.32
1448991039 968536800 1449077439 1449595839 1449783041 1449097200 1448838000
Output for 5.3.28, 5.4.23 - 5.4.27
1448991040 968536800 1449077440 1449595840 1449783042 1449097200 1448838000
Output for 5.4.18 - 5.4.22
1448991041 968536800 1449077441 1449595841 1449783043 1449097200 1448838000
Output for 5.3.23 - 5.3.27, 5.4.12 - 5.4.17
1448991042 968536800 1449077442 1449595842 1449783044 1449097200 1448838000
Output for 5.3.20 - 5.3.22, 5.4.10 - 5.4.11
1448991043 968536800 1449077443 1449595843 1449783045 1449097200 1448838000