3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array("a" => "green", "red", "b" => "green", "blue", "red"); asort($input,SORT_REGULAR); print_r($input); print "\n"; $result = array_unique($input,SORT_REGULAR); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EAtbR
function name:  (null)
number of ops:  18
compiled vars:  !0 = $input, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'asort'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 0
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    5     8        ECHO                                                     '%0A'
    6     9        INIT_FCALL                                               'array_unique'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 0
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    7    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.69 ms | 1386 KiB | 19 Q