3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1, 'a', '+1', 'INV-123','123', '1+123','123', null]; $array2 = ["100","100","25","15p100","25","25"]; print_r(array_unique($array, SORT_REGULAR)); print_r(array_unique($array, SORT_STRING)); print_r(array_unique($array2, SORT_REGULAR)); print_r(array_unique($array2, SORT_STRING));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UTnXH
function name:  (null)
number of ops:  31
compiled vars:  !0 = $array, !1 = $array2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'array_unique'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 0
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'array_unique'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 2
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'print_r'
         17        INIT_FCALL                                               'array_unique'
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 0
         20        DO_ICALL                                         $8      
         21        SEND_VAR                                                 $8
         22        DO_ICALL                                                 
    7    23        INIT_FCALL                                               'print_r'
         24        INIT_FCALL                                               'array_unique'
         25        SEND_VAR                                                 !1
         26        SEND_VAL                                                 2
         27        DO_ICALL                                         $10     
         28        SEND_VAR                                                 $10
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.53 ms | 1003 KiB | 15 Q