3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new \SplFixedArray(10); $refl = new \ReflectionObject($obj); $props = $refl->getProperties(\ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED); foreach($props as $prop) print $prop->name . '-' . $prop->getValue();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/aNsDg
function name:  (null)
number of ops:  23
compiled vars:  !0 = $obj, !1 = $refl, !2 = $props, !3 = $prop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'SplFixedArray'
          1        SEND_VAL_EX                                              10
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    4     4        NEW                                              $7      'ReflectionObject'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $7
    5     8        INIT_METHOD_CALL                                         !1, 'getProperties'
          9        SEND_VAL_EX                                              3
         10        DO_FCALL                                      0  $10     
         11        ASSIGN                                                   !2, $10
    7    12      > FE_RESET_R                                       $12     !2, ->21
         13    > > FE_FETCH_R                                               $12, !3, ->21
    8    14    >   FETCH_OBJ_R                                      ~13     !3, 'name'
         15        CONCAT                                           ~14     ~13, '-'
         16        INIT_METHOD_CALL                                         !3, 'getValue'
         17        DO_FCALL                                      0  $15     
         18        CONCAT                                           ~16     ~14, $15
         19        ECHO                                                     ~16
    7    20      > JMP                                                      ->13
         21    >   FE_FREE                                                  $12
    8    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.22 ms | 1394 KiB | 13 Q