3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.28 ms | 2090 KiB | 16 Q