3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.83 ms | 1395 KiB | 15 Q