3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array (1, 2, 3); $b = array (1 => 2, 2 => 3, 0 => 1); $c = array (’a’ => 1, ’b’ => 2, ’c’ => 3); var_dump ($a == $b); var_dump ($a === $b); var_dump ($a == $c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rYuFC
function name:  (null)
number of ops:  22
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        FETCH_CONSTANT                                   ~5      '%E2%80%99a%E2%80%99'
          3        INIT_ARRAY                                       ~6      1, ~5
          4        FETCH_CONSTANT                                   ~7      '%E2%80%99b%E2%80%99'
          5        ADD_ARRAY_ELEMENT                                ~6      2, ~7
          6        FETCH_CONSTANT                                   ~8      '%E2%80%99c%E2%80%99'
          7        ADD_ARRAY_ELEMENT                                ~6      3, ~8
          8        ASSIGN                                                   !2, ~6
    7     9        INIT_FCALL                                               'var_dump'
         10        IS_EQUAL                                         ~10     !0, !1
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'var_dump'
         14        IS_IDENTICAL                                     ~12     !0, !1
         15        SEND_VAL                                                 ~12
         16        DO_ICALL                                                 
    9    17        INIT_FCALL                                               'var_dump'
         18        IS_EQUAL                                         ~14     !0, !2
         19        SEND_VAL                                                 ~14
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.53 ms | 1395 KiB | 15 Q