3v4l.org

run code in 300+ PHP versions simultaneously
<?php #[\AllowDynamicProperties] class SegFault { } $segFault = new SegFault(); $segFault->dynamicProp = 'dont call getHooks!'; $reflectionProperty = new ReflectionProperty($segFault, 'dynamicProp'); $reflectionProperty->getHooks();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nurSR
function name:  (null)
number of ops:  13
compiled vars:  !0 = $segFault, !1 = $reflectionProperty
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $2      'SegFault'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    9     3        ASSIGN_OBJ                                               !0, 'dynamicProp'
          4        OP_DATA                                                  'dont+call+getHooks%21'
   11     5        NEW                                              $6      'ReflectionProperty'
          6        SEND_VAR_EX                                              !0
          7        SEND_VAL_EX                                              'dynamicProp'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
   13    10        INIT_METHOD_CALL                                         !1, 'getHooks'
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Class SegFault: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.19 ms | 998 KiB | 13 Q