3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = Array(607,608,609,610); $second = Array(607,608,609,800); $Fcount = count($first); $arr = array_merge($first, $second); $arrc= array_diff($arr, array_diff_assoc($arr, array_unique($arr))); foreach ($arrc as $key => $value){ echo $key; if($arrc >= $Fcount){ echo "first array". $value; }else{ echo "second array" . $value; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 33
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 33
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/8gaNP
function name:  (null)
number of ops:  35
compiled vars:  !0 = $first, !1 = $second, !2 = $Fcount, !3 = $arr, !4 = $arrc, !5 = $value, !6 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        COUNT                                            ~9      !0
          3        ASSIGN                                                   !2, ~9
    6     4        INIT_FCALL                                               'array_merge'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $11     
          8        ASSIGN                                                   !3, $11
    9     9        INIT_FCALL                                               'array_diff'
         10        SEND_VAR                                                 !3
         11        INIT_FCALL                                               'array_diff_assoc'
         12        SEND_VAR                                                 !3
         13        INIT_FCALL                                               'array_unique'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                         $13     
         16        SEND_VAR                                                 $13
         17        DO_ICALL                                         $14     
         18        SEND_VAR                                                 $14
         19        DO_ICALL                                         $15     
         20        ASSIGN                                                   !4, $15
   10    21      > FE_RESET_R                                       $17     !4, ->33
         22    > > FE_FETCH_R                                       ~18     $17, !5, ->33
         23    >   ASSIGN                                                   !6, ~18
   11    24        ECHO                                                     !6
   12    25        IS_SMALLER_OR_EQUAL                                      !2, !4
         26      > JMPZ                                                     ~20, ->30
   13    27    >   CONCAT                                           ~21     'first+array', !5
         28        ECHO                                                     ~21
         29      > JMP                                                      ->32
   15    30    >   CONCAT                                           ~22     'second+array', !5
         31        ECHO                                                     ~22
   10    32    > > JMP                                                      ->22
         33    >   FE_FREE                                                  $17
   17    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
209.25 ms | 1396 KiB | 21 Q