3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array1 = array( 'post', 'page' ); $array2 = array( 'page', 'post' ); $equal = $array1 == $array2; $strict = $array1 === $array2; // Note: this will error in PHP 5.4 and lower (unsupported by WP) $equivalent = empty( array_diff( $array1, $array2) ); var_dump( 'equal', $equal ); var_dump( 'strict', $strict ); var_dump( 'equivalent', $equivalent );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fAlcb
function name:  (null)
number of ops:  25
compiled vars:  !0 = $array1, !1 = $array2, !2 = $equal, !3 = $strict, !4 = $equivalent
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, <array>
    6     2        IS_EQUAL                                             ~7      !0, !1
          3        ASSIGN                                                       !2, ~7
    7     4        IS_IDENTICAL                                         ~9      !0, !1
          5        ASSIGN                                                       !3, ~9
   10     6        INIT_FCALL                                                   'array_diff'
          7        SEND_VAR                                                     !0
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                             $11     
         10        BOOL_NOT                                             ~12     $11
         11        ASSIGN                                                       !4, ~12
   12    12        INIT_FCALL                                                   'var_dump'
         13        SEND_VAL                                                     'equal'
         14        SEND_VAR                                                     !2
         15        DO_ICALL                                                     
   13    16        INIT_FCALL                                                   'var_dump'
         17        SEND_VAL                                                     'strict'
         18        SEND_VAR                                                     !3
         19        DO_ICALL                                                     
   14    20        INIT_FCALL                                                   'var_dump'
         21        SEND_VAL                                                     'equivalent'
         22        SEND_VAR                                                     !4
         23        DO_ICALL                                                     
         24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.83 ms | 1454 KiB | 15 Q