3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x extends \SplFixedArray{ protected $foo = 4; } $arr = new x(20); while (list($field, $value) = each($arr)){ var_dump($field, $value); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
Branch analysis from position: 5
filename:       /in/a61pH
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr, !1 = $field, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $3      'x'
          1        SEND_VAL_EX                                              20
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
   10     4      > JMP                                                      ->9
   11     5    >   INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                                 
   10     9    >   INIT_FCALL_BY_NAME                                       'each'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $7      
         12        FETCH_LIST_R                                     $8      $7, 0
         13        ASSIGN                                                   !1, $8
         14        FETCH_LIST_R                                     $10     $7, 1
         15        ASSIGN                                                   !2, $10
         16      > JMPNZ                                                    $7, ->5
   12    17    > > RETURN                                                   1

Class x: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.61 ms | 1395 KiB | 15 Q