3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 100000; $i += 1) { $sweetsThief = new \ReflectionProperty('Kitchen', 'yummy'); $sweetsThief->setAccessible(true); }
based on K2Hdp
Output for 7.0.0 - 7.3.0alpha1
Fatal error: Uncaught ReflectionException: Class Kitchen does not exist in /in/7o5IL:3 Stack trace: #0 /in/7o5IL(3): ReflectionProperty->__construct('Kitchen', 'yummy') #1 {main} thrown in /in/7o5IL on line 3
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Fatal error: Uncaught exception 'ReflectionException' with message 'Class Kitchen does not exist' in /in/7o5IL:3 Stack trace: #0 /in/7o5IL(3): ReflectionProperty->__construct('Kitchen', 'yummy') #1 {main} thrown in /in/7o5IL on line 3
Process exited with code 255.
Output for 5.0.3 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/7o5IL on line 3 Fatal error: Uncaught exception 'ReflectionException' with message 'Class Kitchen does not exist' in /in/7o5IL:3 Stack trace: #0 /in/7o5IL(3): ReflectionProperty->__construct('Kitchen', 'yummy') #1 {main} thrown in /in/7o5IL on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.2
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/7o5IL on line 3 Fatal error: Uncaught exception 'ReflectionException' with message 'Class Kitchen does not exist' in /in/7o5IL:3 Stack trace: #0 {main} thrown in /in/7o5IL on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/7o5IL on line 3 Fatal error: Cannot instantiate non-existent class: reflectionproperty in /in/7o5IL on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/7o5IL on line 3 Fatal error: Cannot instantiate non-existent class: reflectionproperty in /in/7o5IL on line 3