3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array( 'foo' => 80, 'bar' => 81, 'baz' => 82 ) ); $init = $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 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 125) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
2 jumps found. (Code = 126) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
Branch analysis from position: 6
Branch analysis from position: 11
filename:       /in/NZbQo
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        ASSIGN                                                   !1, ~5
   11     3        COUNT                                            ~7      !1
          4        ASSIGN                                                   !2, ~7
   13     5      > JMP                                                      ->14
   14     6    > > FE_RESET_RW                                      $9      !1, ->11
          7    > > FE_FETCH_RW                                              $9, !3, ->11
   15     8    >   FETCH_CONSTANT                                   ~10     'l'
          9        ASSIGN_OP                                     1          !3, ~10
   14    10      > JMP                                                      ->7
         11    >   FE_FREE                                                  $9
   16    12        ASSIGN_DIM                                               !0
         13        OP_DATA                                                  !1
   13    14    >   COUNT                                            ~13     !0
         15        IS_SMALLER                                               ~13, 4
         16      > JMPNZ                                                    ~14, ->6
   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:
168.16 ms | 1395 KiB | 15 Q