3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("a" => array(1)); $array2 = array("b" => array("1")); $a = array(1,2,3,4); $b = array(2,4); $c = array(1,2,3,4); $d = array(2,4); $x = array_flip($a); $y = array_flip($b); print_r($x); print_r($y); $result2 = array_intersect_key($x, $y); // 2 4 $result3 = array_intersect($c,$d); print_r($result2); print_r($result3); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4LQ69
function name:  (null)
number of ops:  37
compiled vars:  !0 = $array1, !1 = $array2, !2 = $a, !3 = $b, !4 = $c, !5 = $d, !6 = $x, !7 = $y, !8 = $result2, !9 = $result3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, <array>
    5     3        ASSIGN                                                   !3, <array>
    7     4        ASSIGN                                                   !4, <array>
    8     5        ASSIGN                                                   !5, <array>
   10     6        INIT_FCALL                                               'array_flip'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $16     
          9        ASSIGN                                                   !6, $16
   11    10        INIT_FCALL                                               'array_flip'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $18     
         13        ASSIGN                                                   !7, $18
   12    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !6
         16        DO_ICALL                                                 
   13    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !7
         19        DO_ICALL                                                 
   15    20        INIT_FCALL                                               'array_intersect_key'
         21        SEND_VAR                                                 !6
         22        SEND_VAR                                                 !7
         23        DO_ICALL                                         $22     
         24        ASSIGN                                                   !8, $22
   16    25        INIT_FCALL                                               'array_intersect'
         26        SEND_VAR                                                 !4
         27        SEND_VAR                                                 !5
         28        DO_ICALL                                         $24     
         29        ASSIGN                                                   !9, $24
   18    30        INIT_FCALL                                               'print_r'
         31        SEND_VAR                                                 !8
         32        DO_ICALL                                                 
   19    33        INIT_FCALL                                               'print_r'
         34        SEND_VAR                                                 !9
         35        DO_ICALL                                                 
   21    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.54 ms | 941 KiB | 22 Q