3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $r = new ReflectionParameter('array_sum', 0);
based on 5aJ3f
Output for 5.2.0 - 7.1.0
Output for 5.0.3 - 5.1.6
Fatal error: Uncaught exception 'ReflectionException' with message 'The parameter specified by its offset could not be found' in /in/KQ94r:3 Stack trace: #0 /in/KQ94r(3): ReflectionParameter->__construct('array_sum', 0) #1 {main} thrown in /in/KQ94r on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.2
Fatal error: Uncaught exception 'ReflectionException' with message 'The parameter specified by its offset could not be found' in /in/KQ94r:3 Stack trace: #0 {main} thrown in /in/KQ94r on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionparameter in /in/KQ94r on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionparameter in /in/KQ94r on line 3