3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ref = new ReflectionFunction("ereg"); var_dump($ref->isDeprecated());
based on IAclW
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught ReflectionException: Function ereg() does not exist in /in/JpFGv:2 Stack trace: #0 /in/JpFGv(2): ReflectionFunction->__construct('ereg') #1 {main} thrown in /in/JpFGv on line 2
Process exited with code 255.
Output for 5.3.0 - 5.6.28
bool(true)
Output for 5.2.13 - 5.2.17
bool(false)
Output for 5.1.3 - 5.2.12
Fatal error: isDeprecated() cannot be called statically in /in/JpFGv on line 3
Process exited with code 255.
Output for 5.0.0 - 5.1.2
Fatal error: Call to undefined method ReflectionFunction::isDeprecated() in /in/JpFGv on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/JpFGv on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/JpFGv on line 2