run code in 200+ php & hhvm versions
Bugs & Features
<?php $dp = new DateInterval('P2Y3W3D'); var_dump(isset($dp->d, $dp['d'])); echo $dp->d;

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

Output for Arrow functions
Fatal error: Uncaught Error: Cannot use object of type DateInterval as array in /in/XQOQD:4 Stack trace: #0 {main} thrown in /in/XQOQD on line 4
Output for Object typehint
bool(false) 3
Output for Array change keys
bool(false) 3
Output for Lexical anon
bool(false) 3
Output for Typed properties
bool(false) 3

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