3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $to = DateTime::createFromFormat('h:i A','1:00 AM'); echo $to->format('d M y H:i').'<br/>'; echo $to->getTimestamp();
Output for 5.6.28, 7.0.20 - 7.2.0
28 Sep 15 01:00<br/>1443394800
Output for 7.0.6
03 May 16 01:00<br/>1462230000
Output for 5.6.14, 7.0.5
02 Apr 16 01:00<br/>1459551600
Output for 7.0.4
10 Mar 16 01:00<br/>1457568000
Output for 7.0.3
18 Mar 16 01:00<br/>1458259200
Output for 7.0.2
22 Mar 16 01:00<br/>1458604800
Output for 7.0.1
23 Mar 16 01:00<br/>1458691200
Output for 7.0.0
26 Mar 16 01:00<br/>1458950400
Output for 5.6.21
02 May 16 01:00<br/>1462143600
Output for 5.6.20
09 Apr 16 01:00<br/>1460156400
Output for 5.6.19
07 Mar 16 01:00<br/>1457308800
Output for 5.6.18
14 Mar 16 01:00<br/>1457913600
Output for 5.6.17
19 Mar 16 01:00<br/>1458345600
Output for 5.6.16
27 Mar 16 01:00<br/>1459036800
Output for 5.6.15
28 Mar 16 01:00<br/>1459119600
Output for 5.6.13
15 Apr 16 01:00<br/>1460674800
Output for 5.6.12
19 Apr 16 01:00<br/>1461020400
Output for 5.6.11
23 Apr 16 01:00<br/>1461366000
Output for 5.6.10
25 Apr 16 01:00<br/>1461538800
Output for 5.6.9
27 Apr 16 01:00<br/>1461711600
Output for 5.6.8
29 Apr 16 01:00<br/>1461884400
Output for 5.6.7
25 May 16 01:00<br/>1464130800
Output for 5.5.35
22 May 16 01:00<br/>1463871600
Output for 5.5.34
10 Apr 16 01:00<br/>1460242800
Output for 5.5.33
08 Mar 16 01:00<br/>1457395200
Output for 5.5.32
16 Mar 16 01:00<br/>1458086400
Output for 5.5.31
20 Mar 16 01:00<br/>1458432000
Output for 5.5.30
31 Mar 16 01:00<br/>1459378800
Output for 5.5.29
16 Apr 16 01:00<br/>1460761200
Output for 5.5.28
20 Apr 16 01:00<br/>1461106800
Output for 5.5.27
21 Apr 16 01:00<br/>1461193200
Output for 5.5.26
26 Apr 16 01:00<br/>1461625200
Output for 5.5.25
28 Apr 16 01:00<br/>1461798000
Output for 5.5.24
23 May 16 01:00<br/>1463958000
Output for 5.3.18 - 5.4.45
18 Nov 15 01:00<br/>1447804800