3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Test cases from user's Project $people = array("DHL Guest PayPal", "DHL Guest BT", "DHL Guest Bank", "DHL Ret PayPal", "DHL Ret BT", "DHL Ret Bank", "DHL Wh PayPal", "DHL Wh BT", "DHL Wh Bank", "ACS Guest PayPal", "ACS Guest BT", "ACS Guest Bank", "ELTA Wh PayPal", "ELTA Wh BT", "ELTA Wh Bank"); //15 $count_deps = 0; $which_must_be_deleted = array(); // Dep/cies from user's above Project $words = array( 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]); } // εκτυπωνω τα τελικα test cases print_R($people); ?>
Output for git.master, git.master_jit, rfc.property-hooks
0 index of array $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ [Guest|PayPal]Αυτό απορρίπτεται γιατί βρήκα και τα 2.... Warning: Undefined variable $count in /in/pbXWP on line 54 [Guest|PayPal]Περνάει... [Guest|PayPal]Περνάει... [Guest|PayPal]Περνάει... [Guest|PayPal]Περνάει... [Guest|PayPal]Περνάει... [Guest|PayPal]Περνάει... [Guest|PayPal]Περνάει... [Guest|PayPal]Περνάει... [Guest|PayPal]Αυτό απορρίπτεται γιατί βρήκα και τα 2.... [Guest|PayPal]Περνάει... [Guest|PayPal]Περνάει... [Guest|PayPal]Περνάει... [Guest|PayPal]Περνάει... [Guest|PayPal]Περνάει... 0 index of array $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Dep/ces που πρέπει να αφαιρέσω 2 Array ( [0] => Array ( [0] => 0 [1] => 9 ) ) Array ( [0] => 0 [1] => 9 ) Array ( [1] => DHL Guest BT [2] => DHL Guest Bank [3] => DHL Ret PayPal [4] => DHL Ret BT [5] => DHL Ret Bank [6] => DHL Wh PayPal [7] => DHL Wh BT [8] => DHL Wh Bank [10] => ACS Guest BT [11] => ACS Guest Bank [12] => ELTA Wh PayPal [13] => ELTA Wh BT [14] => ELTA Wh Bank )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
51.13 ms | 404 KiB | 8 Q