3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $array = range(1, 10000); foreach (xrange() as $a) { echo "$a\n"; } function xrange () { yield $i++; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/8A8Op
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 10000
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL_BY_NAME                                       'xrange'
          6        DO_FCALL                                      0  $4      
          7      > FE_RESET_R                                       $5      $4, ->13
          8    > > FE_FETCH_R                                               $5, !1, ->13
    5     9    >   NOP                                                      
         10        FAST_CONCAT                                      ~6      !1, '%0A'
         11        ECHO                                                     ~6
    4    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $5
   10    14      > RETURN                                                   1

Function xrange:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/8A8Op
function name:  xrange
number of ops:  4
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   GENERATOR_CREATE                                         
    9     1        POST_INC                                         ~1      !0
          2        YIELD                                                    ~1
   10     3      > GENERATOR_RETURN                                         

End of function xrange

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.45 ms | 1395 KiB | 15 Q