3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar_val= array ("0" => "134567", "1" => "dogs", "2" => "food", "3" => "EEUU"); $ar_url= array ("0" => "134567", "1" => "food", "2" => "dogs", "3" => "EEUU"); $result = array_diff($ar_val, $ar_url); $num = 0; if ($result != NULL) { echo "unique array keys: TRUE" . "\n\n"; print_r($result); echo "\n\n"; } else { echo "unique array keys: FALSE" . "\n\n"; } foreach($ar_val as $key) { if ($ar_val[$num] != $ar_url[$num]) { echo "intersecting array key different: TRUE" . "\n> "; print_r($ar_val[$num]); echo "\n\n"; } $num++; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 31
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 31
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 29
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 29
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
Branch analysis from position: 16
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 31
Branch analysis from position: 18
Branch analysis from position: 31
filename:       /in/3JC6s
function name:  (null)
number of ops:  33
compiled vars:  !0 = $ar_val, !1 = $ar_url, !2 = $result, !3 = $num, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_diff'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
    7     7        ASSIGN                                                   !3, 0
   10     8        IS_NOT_EQUAL                                             !2, null
          9      > JMPZ                                                     ~10, ->16
   11    10    >   ECHO                                                     'unique+array+keys%3A+TRUE%0A%0A'
   12    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
   13    14        ECHO                                                     '%0A%0A'
         15      > JMP                                                      ->17
   15    16    >   ECHO                                                     'unique+array+keys%3A+FALSE%0A%0A'
   18    17    > > FE_RESET_R                                       $12     !0, ->31
         18    > > FE_FETCH_R                                               $12, !4, ->31
   19    19    >   FETCH_DIM_R                                      ~13     !0, !3
         20        FETCH_DIM_R                                      ~14     !1, !3
         21        IS_NOT_EQUAL                                             ~13, ~14
         22      > JMPZ                                                     ~15, ->29
   20    23    >   ECHO                                                     'intersecting+array+key+different%3A+TRUE%0A%3E+'
   21    24        INIT_FCALL                                               'print_r'
         25        FETCH_DIM_R                                      ~16     !0, !3
         26        SEND_VAL                                                 ~16
         27        DO_ICALL                                                 
   22    28        ECHO                                                     '%0A%0A'
   24    29    >   PRE_INC                                                  !3
   18    30      > JMP                                                      ->18
         31    >   FE_FREE                                                  $12
   26    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.9 ms | 1396 KiB | 17 Q