3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $bithdayDate = date("Y-m-d",strtotime("1986-07-21")); $bithdayDate = strtotime($bithdayDate); $tdate = strtotime(date("Y-m-d")); echo floor(($tdate - $bithdayDate)/31556926);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
26