3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array1 = ["1","5","3","4"]; $array2 = ["1","1","5","5","3","3","4","4","7"]; // every value from array 1 is repeated $array3 = sizeof(array_diff($array1, array_values(array_diff_key($array2, array_unique($array2))) )) > 0 ? false : true; print_r($array3);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/InJb6
function name:  (null)
number of ops:  27
compiled vars:  !0 = $array1, !1 = $array2, !2 = $array3
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, <array>
    7     2        INIT_FCALL                                                   'array_diff'
          3        SEND_VAR                                                     !0
          4        INIT_FCALL                                                   'array_values'
          5        INIT_FCALL                                                   'array_diff_key'
          6        SEND_VAR                                                     !1
          7        INIT_FCALL                                                   'array_unique'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                             $5      
         10        SEND_VAR                                                     $5
         11        DO_ICALL                                             $6      
         12        SEND_VAR                                                     $6
         13        DO_ICALL                                             $7      
         14        SEND_VAR                                                     $7
         15        DO_ICALL                                             $8      
         16        COUNT                                                ~9      $8
         17        IS_SMALLER                                                   0, ~9
         18      > JMPZ                                                         ~10, ->21
         19    >   QM_ASSIGN                                            ~11     <false>
         20      > JMP                                                          ->22
         21    >   QM_ASSIGN                                            ~11     <true>
         22    >   ASSIGN                                                       !2, ~11
    8    23        INIT_FCALL                                                   'print_r'
         24        SEND_VAR                                                     !2
         25        DO_ICALL                                                     
         26      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
235.44 ms | 2018 KiB | 18 Q