3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3); $b = array(2,3,4); $c = array(10); $x = empty(array_intersect($a, $b)); $y = empty(array_intersect($a, $c)); var_dump($x); var_dump($y);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NXEnm
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $x, !4 = $y
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                                               'array_intersect'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $8      
          7        BOOL_NOT                                         ~9      $8
          8        ASSIGN                                                   !3, ~9
    8     9        INIT_FCALL                                               'array_intersect'
         10        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $11     
         13        BOOL_NOT                                         ~12     $11
         14        ASSIGN                                                   !4, ~12
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
   11    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !4
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.73 ms | 1386 KiB | 17 Q