3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 'foo' => null, ]; $b = [ 'foo' => 'str', ]; $c = [ 'foo' => [1, 3], ]; echo "1:\n"; var_dump(array_intersect($a, $b)); echo "\n2:\n"; var_dump(array_intersect($b, $c));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TYrqn
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>
    6     1        ASSIGN                                                   !1, <array>
    9     2        ASSIGN                                                   !2, <array>
   13     3        ECHO                                                     '1%3A%0A'
   14     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'array_intersect'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
   15    11        ECHO                                                     '%0A2%3A%0A'
   16    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'array_intersect'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
133.15 ms | 1445 KiB | 15 Q