3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = []; for ($x = 0; $x < 2; ++$x) { $a["color"]["price"] = ($a["color"]["price"] ?? "2") . "5"; } var_export($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/tV6f4
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, 0
          2      > JMP                                                          ->12
    5     3    >   FETCH_DIM_IS                                         ~6      !0, 'color'
          4        FETCH_DIM_IS                                         ~7      ~6, 'price'
          5        COALESCE                                             ~8      ~7
          6        QM_ASSIGN                                            ~8      '2'
          7        CONCAT                                               ~9      ~8, '5'
          8        FETCH_DIM_W                                          $4      !0, 'color'
          9        ASSIGN_DIM                                                   $4, 'price'
         10        OP_DATA                                                      ~9
    4    11        PRE_INC                                                      !1
         12    >   IS_SMALLER                                                   !1, 2
         13      > JMPNZ                                                        ~11, ->3
    7    14    >   INIT_FCALL                                                   'var_export'
         15        SEND_VAR                                                     !0
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.17 ms | 2112 KiB | 14 Q