3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new \SplFixedArray(10); $refl = new \ReflectionObject($obj); $props = $refl->getProperties(); foreach($props as $prop) print 'name: ' . $prop->name;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/MVggE
function name:  (null)
number of ops:  19
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        DO_FCALL                                      0  $10     
         10        ASSIGN                                                   !2, $10
    7    11      > FE_RESET_R                                       $12     !2, ->17
         12    > > FE_FETCH_R                                               $12, !3, ->17
    8    13    >   FETCH_OBJ_R                                      ~13     !3, 'name'
         14        CONCAT                                           ~14     'name%3A+', ~13
         15        ECHO                                                     ~14
    7    16      > JMP                                                      ->12
         17    >   FE_FREE                                                  $12
    8    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.83 ms | 1393 KiB | 13 Q