3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("1234", "1244","34124","123"); echo count($array) ." ". count(array_unique($array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T738a
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        COUNT                                            ~2      !0
          2        CONCAT                                           ~3      ~2, '++'
          3        INIT_FCALL                                               'array_unique'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        COUNT                                            ~5      $4
          7        CONCAT                                           ~6      ~3, ~5
          8        ECHO                                                     ~6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.91 ms | 1385 KiB | 15 Q