3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ @Peehaa , @NickC , @Jack , @cyril ]; foreach(new LimitIterator(new InfiniteIterator(new ArrayIterator($a)),0,100) as $u) { printf("%s hi \n",$u); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 29, Position 2 = 35
Branch analysis from position: 29
2 jumps found. (Code = 78) Position 1 = 30, Position 2 = 35
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
filename:       /in/vm0iQ
function name:  (null)
number of ops:  37
compiled vars:  !0 = $a, !1 = $u
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BEGIN_SILENCE                                    ~2      
          1        FETCH_CONSTANT                                   ~3      'Peehaa'
          2        END_SILENCE                                              ~2
          3        INIT_ARRAY                                       ~4      ~3
          4        BEGIN_SILENCE                                    ~5      
          5        FETCH_CONSTANT                                   ~6      'NickC'
          6        END_SILENCE                                              ~5
          7        ADD_ARRAY_ELEMENT                                ~4      ~6
          8        BEGIN_SILENCE                                    ~7      
          9        FETCH_CONSTANT                                   ~8      'Jack'
         10        END_SILENCE                                              ~7
         11        ADD_ARRAY_ELEMENT                                ~4      ~8
         12        BEGIN_SILENCE                                    ~9      
         13        FETCH_CONSTANT                                   ~10     'cyril'
         14        END_SILENCE                                              ~9
         15        ADD_ARRAY_ELEMENT                                ~4      ~10
         16        ASSIGN                                                   !0, ~4
    4    17        NEW                                              $12     'LimitIterator'
         18        NEW                                              $13     'InfiniteIterator'
         19        NEW                                              $14     'ArrayIterator'
         20        SEND_VAR_EX                                              !0
         21        DO_FCALL                                      0          
         22        SEND_VAR_NO_REF_EX                                       $14
         23        DO_FCALL                                      0          
         24        SEND_VAR_NO_REF_EX                                       $13
         25        SEND_VAL_EX                                              0
         26        SEND_VAL_EX                                              100
         27        DO_FCALL                                      0          
         28      > FE_RESET_R                                       $18     $12, ->35
         29    > > FE_FETCH_R                                               $18, !1, ->35
    6    30    >   INIT_FCALL                                               'printf'
         31        SEND_VAL                                                 '%25s+hi+%0A'
         32        SEND_VAR                                                 !1
         33        DO_ICALL                                                 
    4    34      > JMP                                                      ->29
         35    >   FE_FREE                                                  $18
    7    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.62 ms | 1396 KiB | 15 Q