3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bithdayDate = strtotime("1986-07-20"); $tdate = strtotime(date("Y-m-d")); echo floor(($tdate - $bithdayDate)/31556926);

preferences:
81.98 ms | 402 KiB | 5 Q