3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array (0 => "apple", 1 => "banana"); $b = array (1 => "banana", 0 => "apple"); var_dump($a === $b); // prints bool(false) as well $b = array ("0" => "apple", "1" => "banana"); var_dump($a === $b); // prints bool(true) $b = array ("1" => "banana", "0" => "apple"); var_dump($a === $b); // prints bool(true) $a = array ("0" => "apple", "1" => "banana"); var_dump($a === $b); // prints bool(true) ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iOrC9
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'var_dump'
          3        IS_IDENTICAL                                     ~4      !0, !1
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                                 
    7     6        ASSIGN                                                   !1, <array>
    8     7        INIT_FCALL                                               'var_dump'
          8        IS_IDENTICAL                                     ~7      !0, !1
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                                 
   10    11        ASSIGN                                                   !1, <array>
   11    12        INIT_FCALL                                               'var_dump'
         13        IS_IDENTICAL                                     ~10     !0, !1
         14        SEND_VAL                                                 ~10
         15        DO_ICALL                                                 
   13    16        ASSIGN                                                   !0, <array>
   14    17        INIT_FCALL                                               'var_dump'
         18        IS_IDENTICAL                                     ~13     !0, !1
         19        SEND_VAL                                                 ~13
         20        DO_ICALL                                                 
   15    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.89 ms | 1395 KiB | 15 Q