3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new NoRewindIterator(new EmptyIterator); var_dump($it->valid()); foreach ($it as $k => $v) { var_dump($k, $v); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/v0qAZ
function name:  (null)
number of ops:  21
compiled vars:  !0 = $it, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'NoRewindIterator'
          1        NEW                                              $4      'EmptyIterator'
          2        DO_FCALL                                      0          
          3        SEND_VAR_NO_REF_EX                                       $4
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
    5     6        INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         !0, 'valid'
          8        DO_FCALL                                      0  $8      
          9        SEND_VAR                                                 $8
         10        DO_ICALL                                                 
    7    11      > FE_RESET_R                                       $10     !0, ->19
         12    > > FE_FETCH_R                                       ~11     $10, !1, ->19
         13    >   ASSIGN                                                   !2, ~11
         14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > JMP                                                      ->12
         19    >   FE_FREE                                                  $10
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.31 ms | 997 KiB | 14 Q