3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //following GMT value or offset get from api $offsetHours = '-5 hours'; // This time i get from api $currentValue = '1401705628'; $actualTimeStamp = strtotime($offsetHours,$currentValue); echo $actualTimeStamp; echo date('h:i A',$actualTimeStamp);
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
140168762807:40 AM
Output for 5.0.0 - 5.0.2
140164200007:00 PM