3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Test cases from user's Project $people = array("DHL Guest PayPal", //0 "DHL Guest BT", //1 "DHL Guest Bank", //2 "DHL Ret PayPal", //3 "DHL Ret BT", //4 "DHL Ret Bank", //5 "DHL Wh PayPal", //6 "DHL Wh BT", //7 "DHL Wh Bank", //8 "ACS Guest PayPal", //9 "ACS Guest BT", //10 "ACS Guest Bank", // 11 "ELTA Wh PayPal", //12 "ELTA Wh BT", //13 "ELTA Wh Bank"); //14 $count_deps = 0; $which_must_be_deleted = array(); // Dep/cies from user's above Project $words = array( array('DHL', 'Wh', 'BT'), // array('Guest', 'PayPal'), //$words[0]-------------------------------->| //array('DHL', 'Guest') //$words[1]---------------------------------->| // | // | ); // | // | $sum = array(); // | $sum_teliko = array(); // | for ($p=0; $p<sizeof($words); $p++) { // | // | unset($sum); // | $sum = array(); // | echo "$p index of array $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ \n"; // | for ($i=0; $i<sizeof($people); $i++) { // | // | $var = $people[$i]; // | // | $ch = implode("|",$words[$p]); // <====| I pass the index of each array from the $words[] echo $pattern = '['.$ch.']'; if(preg_match_all($pattern, $var,$matches) >=2) { echo 'Αυτό απορρίπτεται γιατί βρήκα και τα 2....'; $sum[] = $i; //κρατάω τη θέση που βρήκα τις εξαιρέσεις echo "\n"; $which_must_be_deleted[] = $i; $count++; }else { echo 'Περνάει...'; echo "\n"; } } echo "$p index of array $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ \n"; $sum_teliko[$p] = $sum; echo "\n"; } echo "Dep/ces που πρέπει να αφαιρέσω " .$count ; echo "\n"; print_R($sum_teliko); echo "\n"; sort($which_must_be_deleted); print_R(array_unique($which_must_be_deleted)); // διαγραφω τα dep/cies απο τον αρχικο πινακα με τα test cases foreach ($which_must_be_deleted as $example) { unset($people[$example]); } echo "\n"; echo "Test cases made :"; // εκτυπωνω τα τελικα test cases print_R($people); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 55
Branch analysis from position: 55
2 jumps found. (Code = 44) Position 1 = 58, Position 2 = 8
Branch analysis from position: 58
2 jumps found. (Code = 77) Position 1 = 75, Position 2 = 78
Branch analysis from position: 75
2 jumps found. (Code = 78) Position 1 = 76, Position 2 = 78
Branch analysis from position: 76
1 jumps found. (Code = 42) Position 1 = 75
Branch analysis from position: 75
Branch analysis from position: 78
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 78
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 15
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 58, Position 2 = 8
Branch analysis from position: 58
Branch analysis from position: 8
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 42
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 15
Branch analysis from position: 48
Branch analysis from position: 15
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 15
Branch analysis from position: 48
Branch analysis from position: 15
filename:       /in/rLmta
function name:  (null)
number of ops:  85
compiled vars:  !0 = $people, !1 = $count_deps, !2 = $which_must_be_deleted, !3 = $words, !4 = $sum, !5 = $sum_teliko, !6 = $p, !7 = $i, !8 = $var, !9 = $ch, !10 = $pattern, !11 = $matches, !12 = $count, !13 = $example
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
   20     1        ASSIGN                                                   !1, 0
   22     2        ASSIGN                                                   !2, <array>
   25     3        ASSIGN                                                   !3, <array>
   34     4        ASSIGN                                                   !4, <array>
   35     5        ASSIGN                                                   !5, <array>
   36     6        ASSIGN                                                   !6, 0
          7      > JMP                                                      ->55
   38     8    >   UNSET_CV                                                 !4
   39     9        ASSIGN                                                   !4, <array>
   40    10        NOP                                                      
         11        FAST_CONCAT                                      ~22     !6, '+index+of+array+%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24+%0A'
         12        ECHO                                                     ~22
   41    13        ASSIGN                                                   !7, 0
         14      > JMP                                                      ->45
   43    15    >   FETCH_DIM_R                                      ~24     !0, !7
         16        ASSIGN                                                   !8, ~24
   45    17        INIT_FCALL                                               'implode'
         18        SEND_VAL                                                 '%7C'
         19        FETCH_DIM_R                                      ~26     !3, !6
         20        SEND_VAL                                                 ~26
         21        DO_ICALL                                         $27     
         22        ASSIGN                                                   !9, $27
   46    23        CONCAT                                           ~29     '%5B', !9
         24        CONCAT                                           ~30     ~29, '%5D'
         25        ASSIGN                                           ~31     !10, ~30
         26        ECHO                                                     ~31
   48    27        INIT_FCALL                                               'preg_match_all'
         28        SEND_VAR                                                 !10
         29        SEND_VAR                                                 !8
         30        SEND_REF                                                 !11
         31        DO_ICALL                                         $32     
         32        IS_SMALLER_OR_EQUAL                                      2, $32
         33      > JMPZ                                                     ~33, ->42
   50    34    >   ECHO                                                     '%CE%91%CF%85%CF%84%CF%8C+%CE%B1%CF%80%CE%BF%CF%81%CF%81%CE%AF%CF%80%CF%84%CE%B5%CF%84%CE%B1%CE%B9+%CE%B3%CE%B9%CE%B1%CF%84%CE%AF+%CE%B2%CF%81%CE%AE%CE%BA%CE%B1+%CE%BA%CE%B1%CE%B9+%CF%84%CE%B1+2....'
   51    35        ASSIGN_DIM                                               !4
         36        OP_DATA                                                  !7
   52    37        ECHO                                                     '%0A'
   53    38        ASSIGN_DIM                                               !2
         39        OP_DATA                                                  !7
   54    40        PRE_INC                                                  !12
         41      > JMP                                                      ->44
   57    42    >   ECHO                                                     '%CE%A0%CE%B5%CF%81%CE%BD%CE%AC%CE%B5%CE%B9...'
   58    43        ECHO                                                     '%0A'
   41    44    >   PRE_INC                                                  !7
         45    >   COUNT                                            ~38     !0
         46        IS_SMALLER                                               !7, ~38
         47      > JMPNZ                                                    ~39, ->15
   63    48    >   NOP                                                      
         49        FAST_CONCAT                                      ~40     !6, '+index+of+array+%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24%24+%0A'
         50        ECHO                                                     ~40
   65    51        ASSIGN_DIM                                               !5, !6
         52        OP_DATA                                                  !4
   66    53        ECHO                                                     '%0A'
   36    54        PRE_INC                                                  !6
         55    >   COUNT                                            ~43     !3
         56        IS_SMALLER                                               !6, ~43
         57      > JMPNZ                                                    ~44, ->8
   70    58    >   CONCAT                                           ~45     'Dep%2Fces+%CF%80%CE%BF%CF%85+%CF%80%CF%81%CE%AD%CF%80%CE%B5%CE%B9+%CE%BD%CE%B1+%CE%B1%CF%86%CE%B1%CE%B9%CF%81%CE%AD%CF%83%CF%89+', !12
         59        ECHO                                                     ~45
   71    60        ECHO                                                     '%0A'
   73    61        INIT_FCALL                                               'print_r'
         62        SEND_VAR                                                 !5
         63        DO_ICALL                                                 
   75    64        ECHO                                                     '%0A'
   77    65        INIT_FCALL                                               'sort'
         66        SEND_REF                                                 !2
         67        DO_ICALL                                                 
   78    68        INIT_FCALL                                               'print_r'
         69        INIT_FCALL                                               'array_unique'
         70        SEND_VAR                                                 !2
         71        DO_ICALL                                         $48     
         72        SEND_VAR                                                 $48
         73        DO_ICALL                                                 
   82    74      > FE_RESET_R                                       $50     !2, ->78
         75    > > FE_FETCH_R                                               $50, !13, ->78
   83    76    >   UNSET_DIM                                                !0, !13
   82    77      > JMP                                                      ->75
         78    >   FE_FREE                                                  $50
   86    79        ECHO                                                     '%0A'
   87    80        ECHO                                                     'Test+cases+made+%3A'
   90    81        INIT_FCALL                                               'print_r'
         82        SEND_VAR                                                 !0
         83        DO_ICALL                                                 
   93    84      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.92 ms | 1404 KiB | 23 Q