3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {}; $a = new A(); class B {}; $b = new B(); $array = array(); for($i=0; $i<28; $i++) $array[$i] = $a; $array[0] = $array[26] = $b; $array = array_unique($array,SORT_REGULAR); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 9
Branch analysis from position: 14
Branch analysis from position: 9
filename:       /in/sE03m
function name:  (null)
number of ops:  27
compiled vars:  !0 = $a, !1 = $b, !2 = $array, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $4      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    7     3        NEW                                              $7      'B'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $7
    9     6        ASSIGN                                                   !2, <array>
   10     7        ASSIGN                                                   !3, 0
          8      > JMP                                                      ->12
   11     9    >   ASSIGN_DIM                                               !2, !3
         10        OP_DATA                                                  !0
   10    11        PRE_INC                                                  !3
         12    >   IS_SMALLER                                               !3, 28
         13      > JMPNZ                                                    ~14, ->9
   12    14    >   ASSIGN_DIM                                       ~16     !2, 26
         15        OP_DATA                                                  !1
         16        ASSIGN_DIM                                               !2, 0
         17        OP_DATA                                                  ~16
   14    18        INIT_FCALL                                               'array_unique'
         19        SEND_VAR                                                 !2
         20        SEND_VAL                                                 0
         21        DO_ICALL                                         $17     
         22        ASSIGN                                                   !2, $17
   15    23        INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.18 ms | 1395 KiB | 17 Q