3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1, 2, 3]; $b = [1, 2, 3]; $c = [3, 1, 2]; var_dump([ $a == $b, // same order, loose $a === $b, // same order, strict $a == $c, // diff order, loose $a === $c // diff order, strict ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bbTb0
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    7     3        INIT_FCALL                                               'var_dump'
    8     4        IS_EQUAL                                         ~6      !0, !1
          5        INIT_ARRAY                                       ~7      ~6
    9     6        IS_IDENTICAL                                     ~8      !0, !1
          7        ADD_ARRAY_ELEMENT                                ~7      ~8
   10     8        IS_EQUAL                                         ~9      !0, !2
          9        ADD_ARRAY_ELEMENT                                ~7      ~9
   11    10        IS_IDENTICAL                                     ~10     !0, !2
         11        ADD_ARRAY_ELEMENT                                ~7      ~10
         12        SEND_VAL                                                 ~7
    7    13        DO_ICALL                                                 
   12    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.28 ms | 1429 KiB | 15 Q