3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.23 ms | 1395 KiB | 17 Q