3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = Array ( 1 => 'uneven tyre wear' ); $b = Array ( 0 => 'uneven tyre wear', 1 => 'there is bald spot on the inside or outside of tyre' ); if(count(array_diff($b,$a)) == 0){ echo "both array are identical"; }else{ echo "not identical"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9lNae
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
   13     2        INIT_FCALL                                               'array_diff'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        COUNT                                            ~5      $4
          7        IS_EQUAL                                                 ~5, 0
          8      > JMPZ                                                     ~6, ->11
   14     9    >   ECHO                                                     'both+array+are+identical'
   13    10      > JMP                                                      ->12
   18    11    >   ECHO                                                     'not+identical'
   19    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.07 ms | 998 KiB | 14 Q