3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump([ 'array_unique' => array_unique([0, false, 0]), 'double flip' => array_flip(array_flip([0, false, 0])), ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vKUNm
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
    4     1        INIT_FCALL                                                   'array_unique'
          2        SEND_VAL                                                     <array>
          3        DO_ICALL                                             $0      
          4        INIT_ARRAY                                           ~1      $0, 'array_unique'
    5     5        INIT_FCALL                                                   'array_flip'
          6        INIT_FCALL                                                   'array_flip'
          7        SEND_VAL                                                     <array>
          8        DO_ICALL                                             $2      
          9        SEND_VAR                                                     $2
         10        DO_ICALL                                             $3      
         11        ADD_ARRAY_ELEMENT                                    ~1      $3, 'double+flip'
         12        SEND_VAL                                                     ~1
    3    13        DO_ICALL                                                     
    6    14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.25 ms | 2408 KiB | 16 Q