3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ap = new AppendIterator(); $it = new SplFileObject('data://text/plain;base64,MA==', 'r'); // "0" $ap->append($it); $ap->append(new ArrayIterator(array(1))); // endless foreach ($ap as $value) { var_dump($value); };
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 23
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/4t8uh
function name:  (null)
number of ops:  25
compiled vars:  !0 = $ap, !1 = $it, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'AppendIterator'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        NEW                                              $6      'SplFileObject'
          4        SEND_VAL_EX                                              'data%3A%2F%2Ftext%2Fplain%3Bbase64%2CMA%3D%3D'
          5        SEND_VAL_EX                                              'r'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
    4     8        INIT_METHOD_CALL                                         !0, 'append'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0          
    5    11        INIT_METHOD_CALL                                         !0, 'append'
         12        NEW                                              $10     'ArrayIterator'
         13        SEND_VAL_EX                                              <array>
         14        DO_FCALL                                      0          
         15        SEND_VAR_NO_REF_EX                                       $10
         16        DO_FCALL                                      0          
    7    17      > FE_RESET_R                                       $13     !0, ->23
         18    > > FE_FETCH_R                                               $13, !2, ->23
    8    19    >   INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
    7    22      > JMP                                                      ->18
         23    >   FE_FREE                                                  $13
    9    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.05 ms | 1395 KiB | 15 Q