3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Number() { $totalNumbers = array(); $number = 0; for ($i=0; $i < 10; $i++) { $totalNumbers[] = $number++; } for ($i=0; $i < 10; $i++) { echo $totalNumbers[$i] . "<br>"; } } Number();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SNIio
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_FCALL                                               'number'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function number:
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 = 4
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 12
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 12
Branch analysis from position: 18
Branch analysis from position: 12
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
Branch analysis from position: 4
filename:       /in/SNIio
function name:  Number
number of ops:  19
compiled vars:  !0 = $totalNumbers, !1 = $number, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, 0
    9     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->8
   11     4    >   POST_INC                                         ~7      !1
          5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  ~7
    9     7        PRE_INC                                                  !2
          8    >   IS_SMALLER                                               !2, 10
          9      > JMPNZ                                                    ~9, ->4
   15    10    >   ASSIGN                                                   !2, 0
         11      > JMP                                                      ->16
   17    12    >   FETCH_DIM_R                                      ~11     !0, !2
         13        CONCAT                                           ~12     ~11, '%3Cbr%3E'
         14        ECHO                                                     ~12
   15    15        PRE_INC                                                  !2
         16    >   IS_SMALLER                                               !2, 10
         17      > JMPNZ                                                    ~14, ->12
   21    18    > > RETURN                                                   null

End of function number

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.11 ms | 1399 KiB | 14 Q