3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array( 'foo' => 80, 'bar' => 81, 'baz' => 82 ) ); $init = clone $arr[0]; $l = count($init); while(count($arr) < 4) { foreach($init as &$prop) { $prop += $l; } $arr[] = $init; } var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 125) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 126) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
Branch analysis from position: 11
filename:       /in/X6sS0
function name:  (null)
number of ops:  21
compiled vars:  !0 = $arr, !1 = $init, !2 = $l, !3 = $prop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        FETCH_DIM_R                                      ~5      !0, 0
          2        CLONE                                            ~6      ~5
          3        ASSIGN                                                   !1, ~6
   11     4        COUNT                                            ~8      !1
          5        ASSIGN                                                   !2, ~8
   13     6      > JMP                                                      ->14
   14     7    > > FE_RESET_RW                                      $10     !1, ->11
          8    > > FE_FETCH_RW                                              $10, !3, ->11
   15     9    >   ASSIGN_OP                                     1          !3, !2
   14    10      > JMP                                                      ->8
         11    >   FE_FREE                                                  $10
   16    12        ASSIGN_DIM                                               !0
         13        OP_DATA                                                  !1
   13    14    >   COUNT                                            ~13     !0
         15        IS_SMALLER                                               ~13, 4
         16      > JMPNZ                                                    ~14, ->7
   19    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.46 ms | 1400 KiB | 15 Q