- floor: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$bithdayDate = "1986-7-21";
$bithdayDate = strtotime($bithdayDate);
$tdate = strtotime(date("Y-m-d"));
echo floor(($tdate - $bithdayDate)/31556926);