3v4l.org

run code in 500+ PHP versions simultaneously
<?php $amount = 4; @$a[5] += $amount; print_r($a); $b[6] = ($b[6] ?? 0) + $amount; print_r($b); @$c->x[5] += $amount; print_r($c); $d[3] = (isset($d[3]) ? $d[3] : 0) + $amount; print_r($d);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tNV3s
function name:  (null)
number of ops:  38
compiled vars:  !0 = $amount, !1 = $a, !2 = $b, !3 = $c, !4 = $d
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 4
    3     1        BEGIN_SILENCE                                        ~6      
          2        ASSIGN_DIM_OP                    +=               1          !1, 5
          3        OP_DATA                                                      !0
          4        END_SILENCE                                                  ~6
    4     5        INIT_FCALL                                                   'print_r'
          6        SEND_VAR                                                     !1
          7        DO_ICALL                                                     
    5     8        FETCH_DIM_IS                                         ~10     !2, 6
          9        COALESCE                                             ~11     ~10
         10        QM_ASSIGN                                            ~11     0
         11        ADD                                                  ~12     ~11, !0
         12        ASSIGN_DIM                                                   !2, 6
         13        OP_DATA                                                      ~12
    6    14        INIT_FCALL                                                   'print_r'
         15        SEND_VAR                                                     !2
         16        DO_ICALL                                                     
    7    17        BEGIN_SILENCE                                        ~14     
         18        FETCH_OBJ_RW                                         $15     !3, 'x'
         19        ASSIGN_DIM_OP                    +=               1          $15, 5
         20        OP_DATA                                                      !0
         21        END_SILENCE                                                  ~14
    8    22        INIT_FCALL                                                   'print_r'
         23        SEND_VAR                                                     !3
         24        DO_ICALL                                                     
    9    25        ISSET_ISEMPTY_DIM_OBJ                             0          !4, 3
         26      > JMPZ                                                         ~19, ->30
         27    >   FETCH_DIM_R                                          ~20     !4, 3
         28        QM_ASSIGN                                            ~21     ~20
         29      > JMP                                                          ->31
         30    >   QM_ASSIGN                                            ~21     0
         31    >   ADD                                                  ~22     ~21, !0
         32        ASSIGN_DIM                                                   !4, 3
         33        OP_DATA                                                      ~22
   10    34        INIT_FCALL                                                   'print_r'
         35        SEND_VAR                                                     !4
         36        DO_ICALL                                                     
         37      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.66 ms | 2277 KiB | 14 Q