3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 1 => array(1,2,3, null, 1, null), 2 => array(1,null,3,null,null) ); $result=array_intersect_assoc(array_filter($arr[1]), array_filter($arr[2])); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tp72C
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'array_intersect_assoc'
          2        INIT_FCALL                                               'array_filter'
          3        FETCH_DIM_R                                      ~3      !0, 1
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        INIT_FCALL                                               'array_filter'
          8        FETCH_DIM_R                                      ~5      !0, 2
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !1, $7
   10    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
129.33 ms | 1399 KiB | 19 Q