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').'<br/>'; echo $to->getTimestamp();
based on fTN15
Output for 5.4.8 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
28 Sep 15 13:00<br/>1443438000
Output for 7.0.6
21 May 16 13:00<br/>1463828400
Output for 5.6.14, 7.0.5
14 Apr 16 13:00<br/>1460631600
Output for 7.0.4
10 Mar 16 13:00<br/>1457611200
Output for 7.0.3
18 Mar 16 13:00<br/>1458302400
Output for 7.0.2
22 Mar 16 13:00<br/>1458648000
Output for 7.0.1
23 Mar 16 13:00<br/>1458734400
Output for 7.0.0
26 Mar 16 13:00<br/>1458993600
Output for 5.6.21
02 May 16 13:00<br/>1462186800
Output for 5.6.20
10 Apr 16 13:00<br/>1460286000
Output for 5.6.19
07 Mar 16 13:00<br/>1457352000
Output for 5.6.18
14 Mar 16 13:00<br/>1457956800
Output for 5.6.17
19 Mar 16 13:00<br/>1458388800
Output for 5.6.16
27 Mar 16 13:00<br/>1459076400
Output for 5.6.15
28 Mar 16 13:00<br/>1459162800
Output for 5.6.13
15 Apr 16 13:00<br/>1460718000
Output for 5.6.12
20 Apr 16 13:00<br/>1461150000
Output for 5.6.11
24 Apr 16 13:00<br/>1461495600
Output for 5.6.10
25 Apr 16 13:00<br/>1461582000
Output for 5.6.9
28 Apr 16 13:00<br/>1461841200
Output for 5.6.8
30 Apr 16 13:00<br/>1462014000
Output for 5.5.35
23 May 16 13:00<br/>1464001200
Output for 5.5.34
11 Apr 16 13:00<br/>1460372400
Output for 5.5.33
08 Mar 16 13:00<br/>1457438400
Output for 5.5.32
16 Mar 16 13:00<br/>1458129600
Output for 5.5.31
20 Mar 16 13:00<br/>1458475200
Output for 5.5.30
01 Apr 16 13:00<br/>1459508400
Output for 5.5.29
17 Apr 16 13:00<br/>1460890800
Output for 5.5.28
21 Apr 16 13:00<br/>1461236400
Output for 5.5.27
22 Apr 16 13:00<br/>1461322800
Output for 5.5.26
26 Apr 16 13:00<br/>1461668400
Output for 5.5.25
29 Apr 16 13:00<br/>1461927600
Output for 5.5.24
24 May 16 13:00<br/>1464087600
Output for 5.4.2 - 5.4.7
27 Oct 15 13:00<br/>1445947200
Output for 5.3.18 - 5.3.29
02 Oct 15 13:00<br/>1443783600