3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((new \DateTime())->format('g:i a O'));
based on 7481l
Output for 5.4.12 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
string(14) "12:19 pm +0100"
Output for 7.0.6
string(13) "2:25 pm +0200"
Output for 7.0.5
string(14) "10:17 am +0200"
Output for 7.0.4
string(14) "10:26 pm +0100"
Output for 7.0.3
string(14) "12:02 am +0100"
Output for 7.0.2
string(13) "6:09 am +0100"
Output for 7.0.1
string(13) "9:11 am +0100"
Output for 7.0.0
string(14) "11:02 am +0200"
Output for 5.6.21
string(13) "5:12 pm +0200"
Output for 5.6.20
string(13) "9:19 am +0200"
Output for 5.6.19
string(13) "6:35 am +0100"
Output for 5.6.18
string(13) "3:36 pm +0100"
Output for 5.6.17
string(13) "3:14 am +0100"
Output for 5.6.16
string(14) "11:52 am +0200"
Output for 5.6.15
string(14) "12:41 pm +0200"
Output for 5.6.14
string(13) "6:24 pm +0200"
Output for 5.6.13
string(13) "7:06 pm +0200"
Output for 5.6.12
string(13) "9:35 am +0200"
Output for 5.6.11
string(13) "4:01 pm +0200"
Output for 5.6.10
string(13) "6:06 pm +0200"
Output for 5.6.9
string(14) "11:35 pm +0200"
Output for 5.6.8
string(13) "8:01 am +0200"
Output for 5.5.35
string(13) "3:28 am +0200"
Output for 5.5.34
string(14) "11:33 am +0200"
Output for 5.5.33
string(13) "9:41 am +0100"
Output for 5.5.32
string(13) "7:36 pm +0100"
Output for 5.5.31
string(13) "6:24 am +0100"
Output for 5.5.30
string(13) "2:32 pm +0200"
Output for 5.5.29
string(13) "9:21 am +0200"
Output for 5.5.28
string(14) "12:55 pm +0200"
Output for 5.5.27
string(13) "2:31 pm +0200"
Output for 5.5.26
string(13) "8:48 pm +0200"
Output for 5.5.25
string(13) "4:16 am +0200"
Output for 5.5.24
string(14) "10:47 am +0200"
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/keQCP on line 3
Process exited with code 255.