3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 1754104481177713303, 1754104481195157801, 1754104481177713307, 1754104481177713308, 1754104481195157802, 1754104481177713304, 1754104481177713301, 1754104481177713302, 1754104481177713306, 1754104481177713309, 1754104481177713305, 1754104481272455006, 1754104481262176601, 1754104481211628402, 1754104481272455002, 1754104481211628404, 1754104481211628401, 1754104481272455003, 1754104481211895601, 1754104481272455007, 1754104481272455005, 1754104481211628406, 1754104481262176602, 1754104481211628405, 1754104481272455001, 1754104481280792001, 1754104481272455004, 1754104481211628403, 1754104481320086801, 1754104481302573305, 1754104481302573302, 1754104481302573303, 1754104481317118402, 1754104481317118401, 1754104481320086802, 1754104481302573301, 1754104481302573304, 1754190881102307101, 1754190881177267102, 1754190881175100401, 1754190881102307102, 1754190881162035601, 1754190881177267101, 1754190881206385802, 1754190881251978901, 1754190881262035601, 1754190881206385801, 1754190881228021102, 1754190881228021101, 1754190881311628402, 1754190881360824604, 1754190881311628404, 1754190881311628401, 1754190881318776501, 1754190881360824601, 1754190881317118402, 1754190881317118401, 1754190881311628406, 1754190881311628405, 1754190881360824602, 1754190881360824605, 1754190881360824603, 1754190881318776502, 1754190881311628403, 1754277281111895601, 1754277281149065501, 1754277281261661401, 1754277281253277901, 1754277281262035601, 1754277281311628402, 1754277281311628404, 1754277281311628401, 1754277281327901003, 1754277281327901004, 1754277281311628406, 1754277281327901006, 1754277281311628405, 1754277281327901001, 1754277281327901005, 1754277281327901002, 1754277281311628403, 1754363681172455006, 1754363681172455002, 1754363681172455003, 1754363681172455007, 1754363681194739402, 1754363681172455005, 1754363681172455001, 1754363681128021102, 1754363681128021101, 1754363681194739401, 1754363681172455004, 1754363681277267102, 1754363681280792001, 1754363681228021102, 1754363681228021101, 1754363681277267101, 1754363681311628402, 1754363681320086801, 1754363681311628404, 1754363681311628401, 1754363681327901003, 1754363681327901004, 1754363681349065501, 1754363681311628406, 1754363681327901006, 1754363681311628405, 1754363681327901001, 1754363681320086802, 1754363681327901005, 1754363681327901002, 1754363681311628403, 1754450081160824604, 1754450081133639001, 1754450081118776501, 1754450081133639002, 1754450081160824601, 1754450081182345201, 1754450081160824602, 1754450081160824605, 1754450081160824603, 1754450081118776502, 1754450081264405101, 1754450081356829003, 1754450081361661401, 1754450081317118402, 1754450081317118401, 1754450081356829002, 1754450081356829004, 1754450081356829001, 1754536481182171807, 1754536481182171805, 1754536481120086801, 1754536481102573305, 1754536481102573302, 1754536481182171803, 1754536481102573303, 1754536481182171808, 1754536481182171806, 1754536481180792001, 1754536481182171804, 1754536481120086802, 1754536481182171810, 1754536481182171802, 1754536481182171809, 1754536481102573301, 1754536481182171801, 1754536481102573304, 1754536481277713303, 1754536481220086801, 1754536481277713307, 1754536481277713308, 1754536481202307101, 1754536481211895601, 1754536481277713304, 1754536481277713301, 1754536481202307102, 1754536481262035601, 1754536481277713302, 1754536481277713306, 1754536481220086802, 1754536481277713309, 1754536481277713305, 1754536481368991101, 1754536481356829003, 1754536481318596801, 1754536481318596803, 1754536481318596804, 1754536481318596802, 1754536481349065501, 1754536481356829002, 1754536481356829004, 1754536481356829001, 1754622881160824604, 1754622881160824601, 1754622881160824602, 1754622881160824605, 1754622881160824603, 1754622881253277901, 1754622881382171807, 1754622881382171805, 1754622881377713303, 1754622881377713307, 1754622881333639001, 1754622881377713308, 1754622881318776501, 1754622881382171803, 1754622881333639002, 1754622881382171808, 1754622881377713304, 1754622881377713301, 1754622881382171806, 1754622881377713302, 1754622881377713306, 1754622881382171804, 1754622881382171810, 1754622881377713309, 1754622881382171802, 1754622881382171809, 1754622881382171801, 1754622881318776502, 1754622881377713305, 1754709281118596801, 1754709281102307101, 1754709281118596803, 1754709281153277901, 1754709281118596804, 1754709281118596802, 1754709281149065501, 1754709281102307102, 1754709281202573305, 1754709281218596801, 1754709281202573302, 1754709281202573303, 1754709281218596803, 1754709281218596804, 1754709281218596802, 1754709281202573301, 1754709281202573304, 1754709281368704903, 1754709281368704907, 1754709281318596801, 1754709281333639001, 1754709281368704901, 1754709281333639002, 1754709281318596803, 1754709281318596804, 1754709281318596802, 1754709281368704902, 1754709281368704908, 1754709281368704906, 1754709281368704904, 1754709281368704905 ]; $counts = array_count_values($array); $duplicates = array_filter($counts, fn($count) => $count > 1); print_r(array_keys($duplicates));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eAm6A
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array, !1 = $counts, !2 = $duplicates
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
  239     1        INIT_FCALL                                               'array_count_values'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
  240     5        INIT_FCALL                                               'array_filter'
          6        SEND_VAR                                                 !1
          7        DECLARE_LAMBDA_FUNCTION                          ~6      [0]
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
  242    11        INIT_FCALL                                               'print_r'
         12        INIT_FCALL                                               'array_keys'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eAm6A
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  240     0  E >   RECV                                             !0      
          1        IS_SMALLER                                       ~1      1, !0
          2      > RETURN                                                   ~1
          3*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.09 ms | 1008 KiB | 17 Q