3v4l.org

run code in 500+ PHP versions simultaneously
<?php #[\AllowDynamicProperties] class SegFault { } $segFault = new SegFault(); $segFault->dynamicProp = 'dont call getHooks!'; $reflectionProperty = new ReflectionProperty($segFault, 'dynamicProp'); $reflectionProperty->getHooks();
Output for 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Output for 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30
Fatal error: Uncaught Error: Call to undefined method ReflectionProperty::getHooks() in /in/nurSR:13 Stack trace: #0 {main} thrown in /in/nurSR on line 13
Process exited with code 255.

preferences:
76.15 ms | 995 KiB | 4 Q