3v4l.org

run code in 300+ PHP versions simultaneously
<?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/JOgn1
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $in_filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'join'
          3        SEND_VAL                                                 '+'
          4        INIT_FCALL                                               'array_intersect'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        ECHO                                                     $5
    9    11        ASSIGN                                                   !0, <array>
   10    12        ASSIGN                                                   !1, <array>
   12    13        INIT_FCALL                                               'join'
         14        SEND_VAL                                                 '+'
         15        INIT_FCALL                                               'array_diff'
         16        SEND_VAR                                                 !0
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $8      
         19        SEND_VAR                                                 $8
         20        DO_ICALL                                         $9      
         21        ECHO                                                     $9
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.56 ms | 1395 KiB | 19 Q