3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array(0,1,2,3); $array2 = array(2,3,1,0,4,6,7); $intersect = array_intersect($array1,$array2); $difference = array_diff($array1,$intersect); if ($difference) { echo 'da'; } else { echo 'nu'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cjOeN
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array1, !1 = $array2, !2 = $intersect, !3 = $difference
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_intersect'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    7     7        INIT_FCALL                                               'array_diff'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !3, $8
    9    12      > JMPZ                                                     !3, ->15
   11    13    >   ECHO                                                     'da'
         14      > JMP                                                      ->16
   15    15    >   ECHO                                                     'nu'
   16    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.37 ms | 1395 KiB | 17 Q