3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3); $b = array(2,3,4); $c = array(10); var_dump(empty(array_intersect($a, $b))); var_dump(empty(array_intersect($a, $c)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bfipS
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    7     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'array_intersect'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        BOOL_NOT                                         ~7      $6
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                                 
    8    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'array_intersect'
         13        SEND_VAR                                                 !0
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $9      
         16        BOOL_NOT                                         ~10     $9
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.16 ms | 940 KiB | 18 Q