3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $localTime = new DateTime(null, new DateTimeZone('UTC')); var_dump($localTime->format("j/n/Y g:i:s a"));
based on QStjU
Output for 5.6.28, 7.0.20 - 7.2.0
string(21) "22/1/2016 10:14:48 am"
Output for 5.5.0 - 5.6.22, 7.0.0 - 7.0.7
string(21) "22/1/2016 11:10:38 am"