3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $to = DateTime::createFromFormat('h:i A','1:00 PM'); echo $to->format('d M y H:i')."\n"; echo $to->getTimestamp();
based on 93m6I
Output for 5.4.8 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
28 Sep 15 13:00 1443438000
Output for 7.0.6
03 May 16 13:00 1462273200
Output for 5.6.14, 7.0.5
02 Apr 16 13:00 1459594800
Output for 7.0.4
10 Mar 16 13:00 1457611200
Output for 7.0.3
18 Mar 16 13:00 1458302400
Output for 7.0.2
22 Mar 16 13:00 1458648000
Output for 7.0.1
23 Mar 16 13:00 1458734400
Output for 7.0.0
26 Mar 16 13:00 1458993600
Output for 5.6.21
02 May 16 13:00 1462186800
Output for 5.6.20
09 Apr 16 13:00 1460199600
Output for 5.6.19
07 Mar 16 13:00 1457352000
Output for 5.6.18
14 Mar 16 13:00 1457956800
Output for 5.6.17
19 Mar 16 13:00 1458388800
Output for 5.6.16
27 Mar 16 13:00 1459076400
Output for 5.6.15
28 Mar 16 13:00 1459162800
Output for 5.6.13
15 Apr 16 13:00 1460718000
Output for 5.6.12
19 Apr 16 13:00 1461063600
Output for 5.6.11
23 Apr 16 13:00 1461409200
Output for 5.6.10
25 Apr 16 13:00 1461582000
Output for 5.6.9
27 Apr 16 13:00 1461754800
Output for 5.6.8
29 Apr 16 13:00 1461927600
Output for 5.6.7
25 May 16 13:00 1464174000
Output for 5.5.35
22 May 16 13:00 1463914800
Output for 5.5.34
10 Apr 16 13:00 1460286000
Output for 5.5.33
08 Mar 16 13:00 1457438400
Output for 5.5.32
16 Mar 16 13:00 1458129600
Output for 5.5.31
20 Mar 16 13:00 1458475200
Output for 5.5.30
31 Mar 16 13:00 1459422000
Output for 5.5.29
16 Apr 16 13:00 1460804400
Output for 5.5.28
20 Apr 16 13:00 1461150000
Output for 5.5.27
21 Apr 16 13:00 1461236400
Output for 5.5.26
26 Apr 16 13:00 1461668400
Output for 5.5.25
28 Apr 16 13:00 1461841200
Output for 5.5.24
23 May 16 13:00 1464001200
Output for 5.4.2 - 5.4.7
27 Oct 15 13:00 1445947200
Output for 5.3.18 - 5.3.29
02 Oct 15 13:00 1443783600