3v4l.org

run code in 500+ PHP versions simultaneously
<?php $getValue = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,5'; if (is_string($getValue)) { $result = max(array_count_values(array_filter(explode(',', $getValue)))); } if ($result > 1) { echo 'Duplicate items were found!'; } else { echo 'No Duplicate'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/3M8eH
function name:  (null)
number of ops:  23
compiled vars:  !0 = $getValue, !1 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C13%2C14%2C15%2C5'
    4     1        TYPE_CHECK                                       64          !0
          2      > JMPZ                                                         ~3, ->17
    5     3    >   INIT_FCALL                                                   'max'
          4        INIT_FCALL                                                   'array_count_values'
          5        INIT_FCALL                                                   'array_filter'
          6        INIT_FCALL                                                   'explode'
          7        SEND_VAL                                                     '%2C'
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                             $4      
         10        SEND_VAR                                                     $4
         11        DO_ICALL                                             $5      
         12        SEND_VAR                                                     $5
         13        DO_ICALL                                             $6      
         14        SEND_VAR                                                     $6
         15        DO_ICALL                                             $7      
         16        ASSIGN                                                       !1, $7
    7    17    >   IS_SMALLER                                                   1, !1
         18      > JMPZ                                                         ~9, ->21
    8    19    >   ECHO                                                         'Duplicate+items+were+found%21'
    7    20      > JMP                                                          ->22
   10    21    >   ECHO                                                         'No+Duplicate'
   11    22    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
208.4 ms | 1885 KiB | 17 Q