3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hour = date('g', strtotime('+1 hour')); echo $hour; $meridiem = date("A"); echo $meridiem;
based on VVf7G
Output for 5.6.28, 7.0.20 - 7.2.0
3PM
Output for 5.4.0 - 5.6.23, 7.0.0 - 7.0.8
2PM