3v4l.org

run code in 300+ PHP versions simultaneously
<?php function noDuplicates($array) { return !array_unique( array_diff_assoc( $array, array_unique($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/O4g3F
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     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/O4g3F
function name:  noDuplicates
number of ops:  14
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'array_unique'
    5     2        INIT_FCALL                                               'array_diff_assoc'
    6     3        SEND_VAR                                                 !0
    7     4        INIT_FCALL                                               'array_unique'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                         $3      
         11        BOOL_NOT                                         ~4      $3
         12      > RETURN                                                   ~4
   10    13*     > RETURN                                                   null

End of function noduplicates

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.95 ms | 1397 KiB | 20 Q