3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = '2014-05-30 06:14:48'; echo kallzu_friendly_time(strtotime($time)); function kallzu_friendly_time($time){ $time = strtotime($time); return date( 'jS F Y, g:i a ', $time); }
Output for 5.2.6 - 5.6.23, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2nd June 3288, 2:01 pm
Output for 5.1.0 - 5.2.5
1st January 1970, 1:00 am
Output for 4.3.0 - 5.0.5
27th October 140144, 12:00 am