3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [['number'=>777]]; $b = []; for ($i = 0; $i < 50; ++$i) { $b += $a; $b[$i]['number'] = $i; } array_walk($b, function($val, $key) { echo '$b[' . $key . ']["number"] = ' . $val['number'] . PHP_EOL; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
Branch analysis from position: 4
filename:       /in/ChuPq
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->9
    5     4    >   ASSIGN_OP                                     1          !1, !0
    6     5        FETCH_DIM_W                                      $7      !1, !2
          6        ASSIGN_DIM                                               $7, 'number'
          7        OP_DATA                                                  !2
    4     8        PRE_INC                                                  !2
          9    >   IS_SMALLER                                               !2, 50
         10      > JMPNZ                                                    ~10, ->4
    8    11    >   INIT_FCALL                                               'array_walk'
         12        SEND_REF                                                 !1
         13        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FChuPq%3A8%240'
         14        SEND_VAL                                                 ~11
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FChuPq%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ChuPq
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $val, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        CONCAT                                           ~2      '%24b%5B', !1
          3        CONCAT                                           ~3      ~2, '%5D%5B%22number%22%5D+%3D+'
          4        FETCH_DIM_R                                      ~4      !0, 'number'
          5        CONCAT                                           ~5      ~3, ~4
          6        CONCAT                                           ~6      ~5, '%0A'
          7        ECHO                                                     ~6
          8      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FChuPq%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.84 ms | 1396 KiB | 15 Q