3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = date_parse_from_format('Y-d-m H:i:s', '2014-02-05 5:22:35'); $unixTimestamp = mktime( $date['hour'], $date['minute'], $date['second'], $date['month'], $date['day'], $date['year'], $date['is_dst'] ); $now = time(); echo round(abs($now - $unixTimestamp) / 60,2). " minutes ago";

preferences:
28.74 ms | 402 KiB | 5 Q