3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $now = time(); // or your date as well $your_birth_date = strtotime("2014-06-24"); $datediff = abs($now - $your_birth_date); echo floor($datediff/(60*60*24)); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
260