3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1= array("name"=>"sam", "add"=> "bangalore", "country"=> "India"); $arr2= array("name"=>"sur", "add"=> "chennai", "country"=> "India"); $union_arr=$arr1 + $arr2; print_r(array_reverse($union_arr)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V4hpF
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $union_arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ADD                                              ~5      !0, !1
          3        ASSIGN                                                   !2, ~5
    5     4        INIT_FCALL                                               'print_r'
          5        INIT_FCALL                                               'array_reverse'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $7      
          8        SEND_VAR                                                 $7
          9        DO_ICALL                                                 
    6    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.49 ms | 1394 KiB | 17 Q