3v4l.org

run code in 300+ PHP versions simultaneously
<?php function flattened_array_intersect($array,$total_arrays){ return implode(', ',array_keys(array_intersect(array_count_values($array),[$total_arrays]))); } echo flattened_array_intersect(array_merge([1,2,3,4,5],[1,3,5],[1,3,4,5],[1,3,5,6,7,8,9]),4);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GOqVr
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'flattened_array_intersect'
          1        INIT_FCALL                                               'array_merge'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 <array>
          4        SEND_VAL                                                 <array>
          5        SEND_VAL                                                 <array>
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        SEND_VAL                                                 4
          9        DO_FCALL                                      0  $1      
         10        ECHO                                                     $1
         11      > RETURN                                                   1

Function flattened_array_intersect:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GOqVr
function name:  flattened_array_intersect
number of ops:  19
compiled vars:  !0 = $array, !1 = $total_arrays
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '%2C+'
          4        INIT_FCALL                                               'array_keys'
          5        INIT_FCALL                                               'array_intersect'
          6        INIT_FCALL                                               'array_count_values'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        INIT_ARRAY                                       ~3      !1
         11        SEND_VAL                                                 ~3
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                         $6      
         17      > RETURN                                                   $6
    4    18*     > RETURN                                                   null

End of function flattened_array_intersect

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
122.13 ms | 1007 KiB | 19 Q