3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ref = new ReflectionFunction('ArrayObject'); var_dump(count($ref->getMethod('__construct')->getParameters()));
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught ReflectionException: Function ArrayObject() does not exist in /in/rKEGW:3 Stack trace: #0 /in/rKEGW(3): ReflectionFunction->__construct('ArrayObject') #1 {main} thrown in /in/rKEGW on line 3
Process exited with code 255.
Output for 5.5.0 - 5.6.25
Fatal error: Uncaught exception 'ReflectionException' with message 'Function ArrayObject() does not exist' in /in/rKEGW:3 Stack trace: #0 /in/rKEGW(3): ReflectionFunction->__construct('ArrayObject') #1 {main} thrown in /in/rKEGW on line 3
Process exited with code 255.