- date: documentation ( source)
<?php
$birthday = new DateTime('Aug 8, 1993');
echo "As of " .
date('F d, Y') .
" you are {$birthday->diff(new datetime)->format('%y years, %m months, %d days, %h hours, %i minutes and %s seconds')} old";