3v4l.org

run code in 500+ PHP versions simultaneously
<?php function noDuplicates($array) { return count($array)==count(array_count_values($array)); } var_export(noDuplicates([1, 1.5]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FSr7P
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'var_export'
          1        INIT_FCALL                                                   'noduplicates'
          2        SEND_VAL                                                     <array>
          3        DO_FCALL                                          0  $0      
          4        SEND_VAR                                                     $0
          5        DO_ICALL                                                     
          6      > RETURN                                                       1

Function noduplicates:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FSr7P
function name:  noDuplicates
number of ops:  9
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        COUNT                                                ~1      !0
          2        INIT_FCALL                                                   'array_count_values'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $2      
          5        COUNT                                                ~3      $2
          6        IS_EQUAL                                             ~4      ~1, ~3
          7      > RETURN                                                       ~4
    5     8*     > RETURN                                                       null

End of function noduplicates

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
200.04 ms | 2015 KiB | 16 Q