3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dp = new DateInterval('P1D'); var_dump(isset($dp->d), $dp->d, get_object_vars($var));
based on vEh3p
Output for 7.0.20 - 7.2.0
Notice: Undefined variable: var in /in/qPtL4 on line 5 Warning: get_object_vars() expects parameter 1 to be object, null given in /in/qPtL4 on line 5 bool(true) int(1) NULL
Output for 5.3.18 - 7.0.6
Notice: Undefined variable: var in /in/qPtL4 on line 5 Warning: get_object_vars() expects parameter 1 to be object, null given in /in/qPtL4 on line 5 bool(false) int(1) NULL