3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'kaushik', 'kaushik is', 'kaushik is great', 'is', 'is great', 'great' ); //$a = array("usb","pc","cam 168","cam","168","cam 168"); $a = array_unique($a); $print_following = array(); foreach ($a as $key => $b) { $x = 0; for ($i = 0; $i < count($a); $i++) { $c = $a; unset($c[$key]); if ($key == $i) continue; if (strpos($c[$i], $b) === false) { $x++; } if ($x == count($a) - 1) { if (!in_array($i, $print_following)) { array_push($print_following, $key); } } } } foreach ($print_following as $o => $value) { echo $a[$value]. ' '; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 44
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 44
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 12
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 12
Branch analysis from position: 43
Branch analysis from position: 12
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 25
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 39
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 39
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 12
Branch analysis from position: 43
Branch analysis from position: 12
Branch analysis from position: 39
Branch analysis from position: 39
Branch analysis from position: 25
Branch analysis from position: 44
2 jumps found. (Code = 77) Position 1 = 46, Position 2 = 52
Branch analysis from position: 46
2 jumps found. (Code = 78) Position 1 = 47, Position 2 = 52
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 52
Branch analysis from position: 44
filename:       /in/WKEKr
function name:  (null)
number of ops:  54
compiled vars:  !0 = $a, !1 = $print_following, !2 = $b, !3 = $key, !4 = $x, !5 = $i, !6 = $c, !7 = $value, !8 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_unique'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $10     
          4        ASSIGN                                                   !0, $10
    5     5        ASSIGN                                                   !1, <array>
    6     6      > FE_RESET_R                                       $13     !0, ->44
          7    > > FE_FETCH_R                                       ~14     $13, !2, ->44
          8    >   ASSIGN                                                   !3, ~14
    8     9        ASSIGN                                                   !4, 0
    9    10        ASSIGN                                                   !5, 0
         11      > JMP                                                      ->40
   11    12    >   ASSIGN                                                   !6, !0
   12    13        UNSET_DIM                                                !6, !3
   13    14        IS_EQUAL                                                 !3, !5
         15      > JMPZ                                                     ~19, ->17
         16    > > JMP                                                      ->39
   15    17    >   INIT_FCALL                                               'strpos'
         18        FETCH_DIM_R                                      ~20     !6, !5
         19        SEND_VAL                                                 ~20
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $21     
         22        TYPE_CHECK                                    4          $21
         23      > JMPZ                                                     ~22, ->25
   17    24    >   PRE_INC                                                  !4
   20    25    >   COUNT                                            ~24     !0
         26        SUB                                              ~25     ~24, 1
         27        IS_EQUAL                                                 !4, ~25
         28      > JMPZ                                                     ~26, ->39
   22    29    >   INIT_FCALL                                               'in_array'
         30        SEND_VAR                                                 !5
         31        SEND_VAR                                                 !1
         32        DO_ICALL                                         $27     
         33        BOOL_NOT                                         ~28     $27
         34      > JMPZ                                                     ~28, ->39
   24    35    >   INIT_FCALL                                               'array_push'
         36        SEND_REF                                                 !1
         37        SEND_VAR                                                 !3
         38        DO_ICALL                                                 
    9    39    >   PRE_INC                                                  !5
         40    >   COUNT                                            ~31     !0
         41        IS_SMALLER                                               !5, ~31
         42      > JMPNZ                                                    ~32, ->12
    6    43    > > JMP                                                      ->7
         44    >   FE_FREE                                                  $13
   30    45      > FE_RESET_R                                       $33     !1, ->52
         46    > > FE_FETCH_R                                       ~34     $33, !7, ->52
         47    >   ASSIGN                                                   !8, ~34
   31    48        FETCH_DIM_R                                      ~36     !0, !7
         49        CONCAT                                           ~37     ~36, '+'
         50        ECHO                                                     ~37
   30    51      > JMP                                                      ->46
         52    >   FE_FREE                                                  $33
   33    53      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.56 ms | 1392 KiB | 21 Q