3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = array(0=>"fqcn",); $a2 = array(0=>new stdClass(),1=>"a",2=>"b"); print_r(array_merge($a1,$a2)); print_r($a1+$a2); print_r($a2+$a1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h55sZ
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a1, !1 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $3      'stdClass'
          2        DO_FCALL                                      0          
          3        INIT_ARRAY                                       ~5      $3, 0
          4        ADD_ARRAY_ELEMENT                                ~5      'a', 1
          5        ADD_ARRAY_ELEMENT                                ~5      'b', 2
          6        ASSIGN                                                   !1, ~5
    6     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'array_merge'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'print_r'
         15        ADD                                              ~9      !0, !1
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                                 
    8    18        INIT_FCALL                                               'print_r'
         19        ADD                                              ~11     !1, !0
         20        SEND_VAL                                                 ~11
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
197.28 ms | 1395 KiB | 17 Q