3v4l.org

run code in 500+ PHP versions simultaneously
<?php $list = []; foreach(range(5, 10) as $i) { // foreach(range(5, 10)) { <===== $list[] = rand(0, 100); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/8fW4E
function name:  (null)
number of ops:  16
compiled vars:  !0 = $list, !1 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        INIT_FCALL                                                   'range'
          2        SEND_VAL                                                     5
          3        SEND_VAL                                                     10
          4        DO_ICALL                                             $3      
          5      > FE_RESET_R                                           $4      $3, ->14
          6    > > FE_FETCH_R                                                   $4, !1, ->14
    6     7    >   INIT_FCALL                                                   'rand'
          8        SEND_VAL                                                     0
          9        SEND_VAL                                                     100
         10        DO_ICALL                                             $6      
         11        ASSIGN_DIM                                                   !0
         12        OP_DATA                                                      $6
    4    13      > JMP                                                          ->6
         14    >   FE_FREE                                                      $4
    7    15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.49 ms | 1366 KiB | 15 Q