3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(); $array[] = array('441', '442', '443'); $array[] = array('441', '443'); $array[] = array('441', '442',); $array[] = array(); $array = array_filter($array); $res_arr = array_shift($array); foreach($array as $filter){ $res_arr = array_intersect($res_arr, $filter); } print_r($res_arr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 25
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 25
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/Rkt1R
function name:  (null)
number of ops:  30
compiled vars:  !0 = $array, !1 = $res_arr, !2 = $filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  <array>
    5     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  <array>
    6     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  <array>
    7     7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  <array>
    9     9        INIT_FCALL                                               'array_filter'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !0, $8
   10    13        INIT_FCALL                                               'array_shift'
         14        SEND_REF                                                 !0
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !1, $10
   11    17      > FE_RESET_R                                       $12     !0, ->25
         18    > > FE_FETCH_R                                               $12, !2, ->25
   12    19    >   INIT_FCALL                                               'array_intersect'
         20        SEND_VAR                                                 !1
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $13     
         23        ASSIGN                                                   !1, $13
   11    24      > JMP                                                      ->18
         25    >   FE_FREE                                                  $12
   15    26        INIT_FCALL                                               'print_r'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.95 ms | 1401 KiB | 21 Q