3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function __construct(\DateTime $data) { var_export($data->getTimestamp()); } } new A(new \DateTime());
Output for 5.6.28, 7.0.20 - 7.2.0
1445352645
Output for 7.0.6
1462227897
Output for 7.0.5
1459598315
Output for 7.0.4
1457560511
Output for 7.0.3
1458253211
Output for 7.0.2
1458550986
Output for 7.0.1
1458722527
Output for 7.0.0
1458992873
Output for 5.6.21
1462123841
Output for 5.6.20
1460186060
Output for 5.6.19
1457291948
Output for 5.6.18
1457940636
Output for 5.6.17
1458356146
Output for 5.6.16
1459081917
Output for 5.6.15
1459171771
Output for 5.6.14
1459527173
Output for 5.6.13
1460664596
Output for 5.6.12
1461057203
Output for 5.6.11
1461342713
Output for 5.6.10
1461521407
Output for 5.6.9
1461712469
Output for 5.6.8
1461912526
Output for 5.5.35
1463863426
Output for 5.5.34
1460292641
Output for 5.5.33
1457428024
Output for 5.5.32
1458065310
Output for 5.5.31
1458453011
Output for 5.5.30
1459438526
Output for 5.5.29
1460801537
Output for 5.5.28
1461154973
Output for 5.5.27
1461250966
Output for 5.5.26
1461615861
Output for 5.5.25
1461810682
Output for 5.5.24
1462011040
Output for 5.4.39 - 5.4.45
1445352654
Output for 5.4.28 - 5.4.38
1445352655
Output for 5.4.17 - 5.4.27
1445352656
Output for 5.4.6 - 5.4.16
1445352657
Output for 5.3.25 - 5.4.5
1445352658
Output for 5.3.19 - 5.3.24
1445352659