3v4l.org

run code in 500+ PHP versions simultaneously
<?php function getDuration(): void { $a = [1,2,3]; // array_unique: single-value parameter - bitmask not allowed $arr = [ 'array' => $a, 'flags' => SORT_REGULAR ]; var_dump(array_unique(...$arr)); } getDuration();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8otIb
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                                   'getduration'
          1        DO_FCALL                                          0          
          2      > RETURN                                                       1

Function getduration:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8otIb
function name:  getDuration
number of ops:  12
compiled vars:  !0 = $a, !1 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, <array>
    7     1        INIT_ARRAY                                           ~3      !0, 'array'
          2        ADD_ARRAY_ELEMENT                                    ~3      0, 'flags'
    6     3        ASSIGN                                                       !1, ~3
   10     4        INIT_FCALL                                                   'var_dump'
          5        INIT_FCALL                                                   'array_unique'
          6        SEND_UNPACK                                                  !1
          7        CHECK_UNDEF_ARGS                                             
          8        DO_ICALL                                             $5      
          9        SEND_VAR                                                     $5
         10        DO_ICALL                                                     
   11    11      > RETURN                                                       null

End of function getduration

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.78 ms | 1390 KiB | 16 Q