3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array_map('strtolower', array( 1 => '1233', 2 => '12334', 3 => 'Hello', 4 => 'hello', 5 => 'U' )); var_dump( array_unique( $array ) ); var_dump( array_diff_assoc( $array, array_unique( $array ) ) ); var_dump( array_unique( array_diff_assoc( $array, array_unique( $array ) ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VhjAs
function name:  (null)
number of ops:  35
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_map'
          1        SEND_VAL                                                 'strtolower'
    4     2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $1      
    3     4        ASSIGN                                                   !0, $1
   12     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'array_unique'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
   14    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'array_diff_assoc'
         13        SEND_VAR                                                 !0
         14        INIT_FCALL                                               'array_unique'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $5      
         17        SEND_VAR                                                 $5
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                                 
   16    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'array_unique'
         23        INIT_FCALL                                               'array_diff_assoc'
         24        SEND_VAR                                                 !0
         25        INIT_FCALL                                               'array_unique'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $8      
         28        SEND_VAR                                                 $8
         29        DO_ICALL                                         $9      
         30        SEND_VAR                                                 $9
         31        DO_ICALL                                         $10     
         32        SEND_VAR                                                 $10
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.64 ms | 1396 KiB | 21 Q