3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = array('green', 4 => '3', 'c' => 'yellow'); $b = array('green', 'c' => 'yellow', '4' => 0x3); $c = array('green', 'c' => 'yellow', '4' => '3'); var_dump($a == $b); // true identical, whatever the order var_dump($a === $b); // false identical, but not the order var_dump($c == $b); // true identical, with some type juggling var_dump($c === $b); // false identical, but not at the type level ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zqkng
function name:  (null)
number of ops:  20
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'
          4        IS_EQUAL                                             ~6      !0, !1
          5        SEND_VAL                                                     ~6
          6        DO_ICALL                                                     
    8     7        INIT_FCALL                                                   'var_dump'
          8        IS_IDENTICAL                                         ~8      !0, !1
          9        SEND_VAL                                                     ~8
         10        DO_ICALL                                                     
   10    11        INIT_FCALL                                                   'var_dump'
         12        IS_EQUAL                                             ~10     !2, !1
         13        SEND_VAL                                                     ~10
         14        DO_ICALL                                                     
   11    15        INIT_FCALL                                                   'var_dump'
         16        IS_IDENTICAL                                         ~12     !2, !1
         17        SEND_VAL                                                     ~12
         18        DO_ICALL                                                     
   13    19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
139.55 ms | 1333 KiB | 14 Q