3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_alfa = array(); $test_alfa[0] = "aa"; $test_alfa[1] = "aa"; $test_alfa[2] = "aa"; $test_alfa[3] = "bb"; $test_alfa[4] = "aa"; $test_alfa[5] = "bb"; $test_alfa[6] = "cc"; $test_alfa[7] = "bb"; $test_beta= array_unique($test_alfa); $numValues = count($test_beta); sort($test_beta); print_r($test_beta); echo ("Number of elements in test_beta = $numValues ");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HIlmS
function name:  (null)
number of ops:  34
compiled vars:  !0 = $test_alfa, !1 = $test_beta, !2 = $numValues
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 0
          2        OP_DATA                                                  'aa'
    5     3        ASSIGN_DIM                                               !0, 1
          4        OP_DATA                                                  'aa'
    6     5        ASSIGN_DIM                                               !0, 2
          6        OP_DATA                                                  'aa'
    7     7        ASSIGN_DIM                                               !0, 3
          8        OP_DATA                                                  'bb'
    8     9        ASSIGN_DIM                                               !0, 4
         10        OP_DATA                                                  'aa'
    9    11        ASSIGN_DIM                                               !0, 5
         12        OP_DATA                                                  'bb'
   10    13        ASSIGN_DIM                                               !0, 6
         14        OP_DATA                                                  'cc'
   11    15        ASSIGN_DIM                                               !0, 7
         16        OP_DATA                                                  'bb'
   13    17        INIT_FCALL                                               'array_unique'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $12     
         20        ASSIGN                                                   !1, $12
   14    21        COUNT                                            ~14     !1
         22        ASSIGN                                                   !2, ~14
   15    23        INIT_FCALL                                               'sort'
         24        SEND_REF                                                 !1
         25        DO_ICALL                                                 
   16    26        INIT_FCALL                                               'print_r'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                                 
   17    29        ROPE_INIT                                     3  ~19     'Number+of+elements+in+test_beta+%3D+'
         30        ROPE_ADD                                      1  ~19     ~19, !2
         31        ROPE_END                                      2  ~18     ~19, '+'
         32        ECHO                                                     ~18
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.02 ms | 1396 KiB | 19 Q