3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt2 = " \" \"Asian's pussy\" slut pounded and facialised asian slut \" \" $ % ^^ $@#@# @((#"; $array = preg_split('/[^[:alnum:]]+/', strtolower($txt2)) ; $string = preg_replace('/[^\'\"[:alnum:]]+/', " ", $txt2); //title echo $string . PHP_EOL; //print_r(array_unique(array_filter($array))); //print_r(array_unique(array_filter($array))); //print_r(array_unique(array_filter($array))); //print_r(array_unique(array_filter($array))); $us_arr = array(); foreach($array as $s) { $flag = true; foreach($us_arr as $us) { if ($us==$s) { $flag = false; break; } } if($flag) { if($s!="") $us_arr[] = $s; } } print_r($us_arr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 35
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 35
Branch analysis from position: 20
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 28
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 28
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 34
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 34
Branch analysis from position: 34
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 28
Branch analysis from position: 28
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
filename:       /in/0SXCA
function name:  (null)
number of ops:  40
compiled vars:  !0 = $txt2, !1 = $array, !2 = $string, !3 = $us_arr, !4 = $s, !5 = $flag, !6 = $us
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '++%22++%22Asian%27s+pussy%22+++slut++++pounded+++and+facialised+asian+slut+%22+++%22++%24+%25+%5E%5E++%24%40%23%40%23+%40%28%28%23'
    5     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%5B%5E%5B%3Aalnum%3A%5D%5D%2B%2F'
          3        INIT_FCALL                                               'strtolower'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $8      
          6        SEND_VAR                                                 $8
          7        DO_ICALL                                         $9      
          8        ASSIGN                                                   !1, $9
    6     9        INIT_FCALL                                               'preg_replace'
         10        SEND_VAL                                                 '%2F%5B%5E%27%5C%22%5B%3Aalnum%3A%5D%5D%2B%2F'
         11        SEND_VAL                                                 '+'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !2, $11
    7    15        CONCAT                                           ~13     !2, '%0A'
         16        ECHO                                                     ~13
   13    17        ASSIGN                                                   !3, <array>
   15    18      > FE_RESET_R                                       $15     !1, ->35
         19    > > FE_FETCH_R                                               $15, !4, ->35
   19    20    >   ASSIGN                                                   !5, <true>
   21    21      > FE_RESET_R                                       $17     !3, ->28
         22    > > FE_FETCH_R                                               $17, !6, ->28
   25    23    >   IS_EQUAL                                                 !6, !4
         24      > JMPZ                                                     ~18, ->27
   29    25    >   ASSIGN                                                   !5, <false>
   31    26      > JMP                                                      ->28
   21    27    > > JMP                                                      ->22
         28    >   FE_FREE                                                  $17
   41    29      > JMPZ                                                     !5, ->34
   44    30    >   IS_NOT_EQUAL                                             !4, ''
         31      > JMPZ                                                     ~20, ->34
   45    32    >   ASSIGN_DIM                                               !3
         33        OP_DATA                                                  !4
   15    34    > > JMP                                                      ->19
         35    >   FE_FREE                                                  $15
   51    36        INIT_FCALL                                               'print_r'
         37        SEND_VAR                                                 !3
         38        DO_ICALL                                                 
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.73 ms | 1400 KiB | 21 Q