3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = Array(1 => 1, 2 =>4); $array1 = Array(3 => 5); $temp = $array + $array1; print_r($temp); echo json_encode($temp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fdljn
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array, !1 = $array1, !2 = $temp
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, <array>
    5     2        ADD                                                  ~5      !0, !1
          3        ASSIGN                                                       !2, ~5
    6     4        INIT_FCALL                                                   'print_r'
          5        SEND_VAR                                                     !2
          6        DO_ICALL                                                     
    7     7        INIT_FCALL                                                   'json_encode'
          8        SEND_VAR                                                     !2
          9        DO_ICALL                                             $8      
         10        ECHO                                                         $8
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
212.33 ms | 1897 KiB | 15 Q