3v4l.org

run code in 500+ PHP versions simultaneously
<?php $b = ['x' => 1, 'y' => 1]; $a = ['x' => 1, 'y' => 2]; if (count(array_diff(array_merge($a, $b), array_intersect($a, $b))) === 0) { echo 'the same'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/U8U5p
function name:  (null)
number of ops:  19
compiled vars:  !0 = $b, !1 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, <array>
    6     2        INIT_FCALL                                                   'array_diff'
          3        INIT_FCALL                                                   'array_merge'
          4        SEND_VAR                                                     !1
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                             $4      
          7        SEND_VAR                                                     $4
          8        INIT_FCALL                                                   'array_intersect'
          9        SEND_VAR                                                     !1
         10        SEND_VAR                                                     !0
         11        DO_ICALL                                             $5      
         12        SEND_VAR                                                     $5
         13        DO_ICALL                                             $6      
         14        COUNT                                                ~7      $6
         15        IS_IDENTICAL                                                 ~7, 0
         16      > JMPZ                                                         ~8, ->18
    7    17    >   ECHO                                                         'the+same'
    8    18    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
185.59 ms | 2731 KiB | 16 Q