3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array("alpha","omega","bravo","charlie","delta","foxfrot"); $arr2 = array("alpha","gamma","bravo","x-ray","charlie","delta","halo","eagle","foxfrot"); $result = array_intersect($arr1, $arr2); print_r($result); $a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); $a2=array("e"=>"red","f"=>"black","g"=>"purple"); $a3=array("a"=>"red","b"=>"black","h"=>"yellow"); $result=array_intersect($a1,$a2,$a3); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jSGuh
function name:  (null)
number of ops:  23
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $result, !3 = $a1, !4 = $a2, !5 = $a3
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                                         $8      
          6        ASSIGN                                                   !2, $8
    7     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
    9    10        ASSIGN                                                   !3, <array>
   10    11        ASSIGN                                                   !4, <array>
   11    12        ASSIGN                                                   !5, <array>
   13    13        INIT_FCALL                                               'array_intersect'
         14        SEND_VAR                                                 !3
         15        SEND_VAR                                                 !4
         16        SEND_VAR                                                 !5
         17        DO_ICALL                                         $14     
         18        ASSIGN                                                   !2, $14
   14    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.24 ms | 1011 KiB | 15 Q