run code in 200+ php & hhvm versions
Bugs & Features
<?php $diff=date_diff(date_create('1997-1-1'),date_create(date("Y-m-d"))); echo $diff->format("%R%a days"); if ($diff < new DateTime('18 years')){ echo 'Too young!'; } else { echo 'old_enough'; }
based on mgLoA

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
+6651 daysold_enough
Output for Array change keys
+6651 daysold_enough
Output for Lexical anon
+6651 daysold_enough

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