3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $selfArObj = new ArrayObject(new DateInterval('P2Y4DT6H8M'));
Output for 7.0.5 - 7.3.0alpha1
Fatal error: Uncaught InvalidArgumentException: Overloaded object of type DateInterval is not compatible with ArrayObject in /in/Wd03J:3 Stack trace: #0 /in/Wd03J(3): ArrayObject->__construct(Object(DateInterval)) #1 {main} thrown in /in/Wd03J on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Fatal error: Uncaught InvalidArgumentException: Overloaded object of type  is not compatible with  in /in/Wd03J:3 Stack trace: #0 /in/Wd03J(3): ArrayObject->__construct(Object(DateInterval)) #1 {main} thrown in /in/Wd03J on line 3
Process exited with code 255.
Output for hhvm-3.15.4
Output for 5.6.0 - 5.6.30
Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Overloaded object of type DateInterval is not compatible with ArrayObject' in /in/Wd03J:3 Stack trace: #0 /in/Wd03J(3): ArrayObject->__construct(Object(DateInterval)) #1 {main} thrown in /in/Wd03J on line 3
Process exited with code 255.