3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function __construct(\DateTime $data = null) { var_export($data->getTimestamp()); } } new A(new \DateTime());
based on 4b4sA
Output for 5.6.28, 7.0.20 - 7.2.0
1445352674
Output for 7.0.6
1463834193
Output for 7.0.5
1459672038
Output for 7.0.4
1457645839
Output for 7.0.3
1458342946
Output for 7.0.2
1458710497
Output for 7.0.1
1458807721
Output for 7.0.0
1459070004
Output for 5.6.21
1462202607
Output for 5.6.20
1460273383
Output for 5.6.19
1457416022
Output for 5.6.18
1458053309
Output for 5.6.17
1458440830
Output for 5.6.16
1459159369
Output for 5.6.15
1459248726
Output for 5.6.14
1460651707
Output for 5.6.13
1460740637
Output for 5.6.12
1461138416
Output for 5.6.11
1461507151
Output for 5.6.10
1461601058
Output for 5.6.9
1461793621
Output for 5.6.8
1461996714
Output for 5.5.35
1463968725
Output for 5.5.34
1460367852
Output for 5.5.33
1457513573
Output for 5.5.32
1458240592
Output for 5.5.31
1458538707
Output for 5.5.30
1459514583
Output for 5.5.29
1460878289
Output for 5.5.28
1461236850
Output for 5.5.27
1461328930
Output for 5.5.26
1461697205
Output for 5.5.25
1461896899
Output for 5.5.24
1464080287
Output for 5.4.45
1454068059
Output for 5.4.44
1454068060
Output for 5.4.42 - 5.4.43
1454068063
Output for 5.4.41
1454068065
Output for 5.4.40
1454068068
Output for 5.4.38 - 5.4.39
1454068071
Output for 5.4.37
1454068073
Output for 5.4.36
1454068074
Output for 5.4.35
1454068076
Output for 5.4.34
1454068077
Output for 5.4.32
1454068080
Output for 5.3.29, 5.4.31
1454068081
Output for 5.4.29 - 5.4.30
1454068083
Output for 5.4.28
1454068084
Output for 5.4.27
1454068085
Output for 5.4.26
1454068086
Output for 5.4.25
1454068087
Output for 5.4.24
1454068088
Output for 5.4.23
1454068089
Output for 5.4.21 - 5.4.22
1454068091
Output for 5.4.20
1454068093
Output for 5.4.19
1454068094
Output for 5.4.18
1454068096
Output for 5.3.27, 5.4.17
1454068097
Output for 5.4.15 - 5.4.16
1454068099
Output for 5.4.14
1454068101
Output for 5.3.23, 5.4.13
1454068102
Output for 5.3.22, 5.4.12
1454068103
Output for 5.3.21, 5.4.11
1454068104
Output for 5.4.9 - 5.4.10
1454068106
Output for 5.3.28
1454068090
Output for 5.3.26
1454068098
Output for 5.3.24 - 5.3.25
1454068100
Output for 5.3.20
1454068105
Output for 5.3.19
1454068107