3v4l.org

run code in 300+ PHP versions simultaneously
<?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)); ?>

preferences:
29.46 ms | 402 KiB | 5 Q