3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.22 ms | 1394 KiB | 17 Q