3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1,2,3]; $b = [3,1,2]; $c = [1,2,"3"]; $asorted = clone($a); $bsorted = clone($b); $csorted = clone($c); var_dump(array_diff($a, $b)); var_dump(array_diff($a, $c)); var_dump(array_diff($b, $a)); var_dump(array_diff($c, $a)); var_dump($b == $a); var_dump($b === $a); var_dump($c == $a); var_dump($c === $a); var_dump(sort($b) == sort($a)); var_dump(sort($b) === sort($a)); var_dump(sort($c) == sort($a)); var_dump(sort($c) === sort($a)); var_dump(sort($c)); var_dump(sort($a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EtLmc
function name:  (null)
number of ops:  106
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $asorted, !4 = $bsorted, !5 = $csorted
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        CLONE                                            ~9      !0
          4        ASSIGN                                                   !3, ~9
    8     5        CLONE                                            ~11     !1
          6        ASSIGN                                                   !4, ~11
    9     7        CLONE                                            ~13     !2
          8        ASSIGN                                                   !5, ~13
   11     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'array_diff'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $15     
         14        SEND_VAR                                                 $15
         15        DO_ICALL                                                 
   12    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'array_diff'
         18        SEND_VAR                                                 !0
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $17     
         21        SEND_VAR                                                 $17
         22        DO_ICALL                                                 
   13    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'array_diff'
         25        SEND_VAR                                                 !1
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $19     
         28        SEND_VAR                                                 $19
         29        DO_ICALL                                                 
   14    30        INIT_FCALL                                               'var_dump'
         31        INIT_FCALL                                               'array_diff'
         32        SEND_VAR                                                 !2
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                         $21     
         35        SEND_VAR                                                 $21
         36        DO_ICALL                                                 
   16    37        INIT_FCALL                                               'var_dump'
         38        IS_EQUAL                                         ~23     !1, !0
         39        SEND_VAL                                                 ~23
         40        DO_ICALL                                                 
   17    41        INIT_FCALL                                               'var_dump'
         42        IS_IDENTICAL                                     ~25     !1, !0
         43        SEND_VAL                                                 ~25
         44        DO_ICALL                                                 
   18    45        INIT_FCALL                                               'var_dump'
         46        IS_EQUAL                                         ~27     !2, !0
         47        SEND_VAL                                                 ~27
         48        DO_ICALL                                                 
   19    49        INIT_FCALL                                               'var_dump'
         50        IS_IDENTICAL                                     ~29     !2, !0
         51        SEND_VAL                                                 ~29
         52        DO_ICALL                                                 
   21    53        INIT_FCALL                                               'var_dump'
         54        INIT_FCALL                                               'sort'
         55        SEND_REF                                                 !1
         56        DO_ICALL                                         $31     
         57        INIT_FCALL                                               'sort'
         58        SEND_REF                                                 !0
         59        DO_ICALL                                         $32     
         60        IS_EQUAL                                         ~33     $31, $32
         61        SEND_VAL                                                 ~33
         62        DO_ICALL                                                 
   22    63        INIT_FCALL                                               'var_dump'
         64        INIT_FCALL                                               'sort'
         65        SEND_REF                                                 !1
         66        DO_ICALL                                         $35     
         67        INIT_FCALL                                               'sort'
         68        SEND_REF                                                 !0
         69        DO_ICALL                                         $36     
         70        IS_IDENTICAL                                     ~37     $35, $36
         71        SEND_VAL                                                 ~37
         72        DO_ICALL                                                 
   24    73        INIT_FCALL                                               'var_dump'
         74        INIT_FCALL                                               'sort'
         75        SEND_REF                                                 !2
         76        DO_ICALL                                         $39     
         77        INIT_FCALL                                               'sort'
         78        SEND_REF                                                 !0
         79        DO_ICALL                                         $40     
         80        IS_EQUAL                                         ~41     $39, $40
         81        SEND_VAL                                                 ~41
         82        DO_ICALL                                                 
   25    83        INIT_FCALL                                               'var_dump'
         84        INIT_FCALL                                               'sort'
         85        SEND_REF                                                 !2
         86        DO_ICALL                                         $43     
         87        INIT_FCALL                                               'sort'
         88        SEND_REF                                                 !0
         89        DO_ICALL                                         $44     
         90        IS_IDENTICAL                                     ~45     $43, $44
         91        SEND_VAL                                                 ~45
         92        DO_ICALL                                                 
   26    93        INIT_FCALL                                               'var_dump'
         94        INIT_FCALL                                               'sort'
         95        SEND_REF                                                 !2
         96        DO_ICALL                                         $47     
         97        SEND_VAR                                                 $47
         98        DO_ICALL                                                 
   27    99        INIT_FCALL                                               'var_dump'
        100        INIT_FCALL                                               'sort'
        101        SEND_REF                                                 !0
        102        DO_ICALL                                         $49     
        103        SEND_VAR                                                 $49
        104        DO_ICALL                                                 
        105      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.16 ms | 1404 KiB | 19 Q