3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = []; print_r($a+=['a'=>'1','b'=>'2']); print_r($a+=[]); print_r($a+=['a'=>'3']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CN0nM
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'print_r'
          2        ASSIGN_OP                                     1  ~2      !0, <array>
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'print_r'
          6        ASSIGN_OP                                     1  ~4      !0, <array>
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'print_r'
         10        ASSIGN_OP                                     1  ~6      !0, <array>
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.78 ms | 1394 KiB | 15 Q