3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function get_age($birth_date){ return floor((time() - strtotime($birth_date))/31556926); } echo " I am ".get_age("1990-03-27") ." years old";
Output for 4.3.0 - 7.2.0
I am 23 years old