3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(class_exists('PDO')); $ref = new ReflectionClass('PDO');
based on VsJAp
Output for 5.1.0 - 5.4.30, 5.4.32 - 7.2.6
bool(true)
Output for 5.4.31

Process exited with code 137.
Output for 5.0.3 - 5.0.5
bool(false) Fatal error: Uncaught exception 'ReflectionException' with message 'Class PDO does not exist' in /in/JV32K:5 Stack trace: #0 /in/JV32K(5): ReflectionClass->__construct('PDO') #1 {main} thrown in /in/JV32K on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.2
bool(false) Fatal error: Uncaught exception 'ReflectionException' with message 'Class PDO does not exist' in /in/JV32K:5 Stack trace: #0 {main} thrown in /in/JV32K on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
bool(false) Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/JV32K on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
bool(false) Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/JV32K on line 5