3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $interval = new DateInterval('P2D'); var_dump(property_exists($interval, 'abcde')); var_dump($interval->abcde);
based on gNBcF
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.13, 7.1.10 - 7.3.0rc3
bool(false) Notice: Undefined property: DateInterval::$abcde in /in/eMJ34 on line 4 NULL
Output for 7.0.14 - 7.1.7
Notice: Undefined property: DateInterval::$abcde in /in/eMJ34 on line 3 bool(true) Notice: Undefined property: DateInterval::$abcde in /in/eMJ34 on line 4 NULL
Output for hhvm-3.15.4
bool(false) Fatal error: Uncaught exception 'Exception' with message 'Undefined property 'abcde) on DateInterval object' in /in/eMJ34:4 Stack trace: #0 /in/eMJ34(4): DateInterval->__get() #1 {main}
Process exited with code 255.