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/oga7g
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $array1, !2 = $array2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'foo'
    3     1        INIT_FCALL                                               'var_dump'
          2        INSTANCEOF                                       ~4      !0, 'stdClass'
          3        SEND_VAL                                                 ~4
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAL                                                 <false>
          7        DO_ICALL                                                 
    7     8        ASSIGN                                                   !1, <array>
   12     9        ASSIGN                                                   !2, <array>
   17    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'array_diff'
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                                 
   18    17        INIT_FCALL                                               'var_dump'
         18        IS_EQUAL                                         ~11     !1, !2
         19        SEND_VAL                                                 ~11
         20        DO_ICALL                                                 
   19    21        INIT_FCALL                                               'var_dump'
         22        IS_IDENTICAL                                     ~13     !1, !2
         23        SEND_VAL                                                 ~13
         24        DO_ICALL                                                 
   22    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.23 ms | 1395 KiB | 17 Q