3v4l.org

run code in 300+ PHP versions simultaneously
<?php function newrange($inizio, $fine, $intervallo) { for ($x = $inizio; $x <= $fine; $x += $intervallo) { // valore di ritorno yield $x; } } foreach (newrange(100, 900, 100) as $risultato) { echo $risultato . " "; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/I9Bi9
function name:  (null)
number of ops:  12
compiled vars:  !0 = $risultato
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'newrange'
          1        SEND_VAL                                                 100
          2        SEND_VAL                                                 900
          3        SEND_VAL                                                 100
          4        DO_FCALL                                      0  $1      
          5      > FE_RESET_R                                       $2      $1, ->10
          6    > > FE_FETCH_R                                               $2, !0, ->10
    9     7    >   CONCAT                                           ~3      !0, '+'
          8        ECHO                                                     ~3
    8     9      > JMP                                                      ->6
         10    >   FE_FREE                                                  $2
   11    11      > RETURN                                                   1

Function newrange:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 6
Branch analysis from position: 10
1 jumps found. (Code = 161) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 6
Branch analysis from position: 10
Branch analysis from position: 6
filename:       /in/I9Bi9
function name:  newrange
number of ops:  11
compiled vars:  !0 = $inizio, !1 = $fine, !2 = $intervallo, !3 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        GENERATOR_CREATE                                         
    3     4        ASSIGN                                                   !3, !0
          5      > JMP                                                      ->8
    5     6    >   YIELD                                                    !3
    3     7        ASSIGN_OP                                     1          !3, !2
          8    >   IS_SMALLER_OR_EQUAL                                      !3, !1
          9      > JMPNZ                                                    ~7, ->6
    7    10    > > GENERATOR_RETURN                                         

End of function newrange

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.63 ms | 1399 KiB | 14 Q