3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $interval = new DateInterval('P2D'); var_dump(property_exists($interval, 'd')); var_dump(isset($interval->d)); var_dump($interval->d);
based on ntKqv
Output for 7.0.14 - 7.1.10
bool(true) bool(true) int(2)
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.0.13
bool(false) bool(false) int(2)