3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $yyyy = '1995'; $mm = '03'; $dd = '13'; $ageY = date("Y")-intval($yyyy); $ageM = date("n")-intval($mm); $ageD = date("j")-intval($dd); if($ageD < 0){ $ageD = $ageD += date("t"); $ageM--; } if($ageM < 0){ $ageM+=12; $ageY--; } $age = $ageY."/".$ageM."/".$ageD; echo $age;
based on jjTiD

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
20/0/6
Output for Array change keys
20/0/6
Output for Lexical anon
20/0/6

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page