3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.64 ms | 999 KiB | 15 Q