3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.37 ms | 1395 KiB | 19 Q