3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.43 ms | 1394 KiB | 17 Q