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); ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0150.00017.00
8.3.50.0090.00618.19
8.3.40.0090.00619.04
8.3.30.0120.00318.92
8.3.20.0040.00420.34
8.3.10.0040.00421.95
8.3.00.0000.00823.69
8.2.180.0090.00616.88
8.2.170.0060.00922.96
8.2.160.0040.01119.33
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00322.20
8.2.120.0090.00026.35
8.2.110.0060.00320.39
8.2.100.0080.00318.09
8.2.90.0030.00719.20
8.2.80.0000.00817.97
8.2.70.0050.00317.88
8.2.60.0000.00817.93
8.2.50.0050.00318.10
8.2.40.0080.00020.55
8.2.30.0020.00519.44
8.2.20.0040.00418.22
8.2.10.0000.00718.21
8.2.00.0080.00018.16
8.1.280.0150.00425.92
8.1.270.0060.00320.51
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.70
8.1.230.0060.00619.04
8.1.220.0000.00817.78
8.1.210.0030.00618.77
8.1.200.0060.00317.48
8.1.190.0050.00317.36
8.1.180.0040.00420.20
8.1.170.0040.00418.65
8.1.160.0000.00818.94
8.1.150.0040.00420.19
8.1.140.0050.00317.76
8.1.130.0030.00319.10
8.1.120.0040.00417.70
8.1.110.0050.00317.53
8.1.100.0030.00617.60
8.1.90.0000.00717.50
8.1.80.0090.00017.63
8.1.70.0040.00417.56
8.1.60.0030.00617.67
8.1.50.0000.00817.71
8.1.40.0050.00317.72
8.1.30.0050.00317.85
8.1.20.0000.00817.83
8.1.10.0000.00817.74
8.1.00.0060.00317.66
8.0.300.0000.00818.77
8.0.290.0040.00417.00
8.0.280.0030.00318.41
8.0.270.0030.00317.30
8.0.260.0000.00718.66
8.0.250.0030.00317.07
8.0.240.0000.00717.17
8.0.230.0000.00717.07
8.0.220.0040.00417.06
8.0.210.0030.00317.16
8.0.200.0080.00017.07
8.0.190.0060.00317.17
8.0.180.0070.00017.20
8.0.170.0000.00817.18
8.0.160.0000.00817.22
8.0.150.0000.00817.09
8.0.140.0000.00717.07
8.0.130.0040.00413.59
8.0.120.0000.00817.12
8.0.110.0040.00417.04
8.0.100.0000.00817.19
8.0.90.0030.00617.06
8.0.80.0100.00717.13
8.0.70.0080.00016.96
8.0.60.0050.00217.00
8.0.50.0000.00717.10
8.0.30.0120.00617.19
8.0.20.0150.00717.42
8.0.10.0000.00717.13
8.0.00.0140.01117.02
7.4.330.0020.00215.55
7.4.320.0060.00016.75
7.4.300.0060.00016.73
7.4.290.0000.00716.84
7.4.280.0080.00016.68
7.4.270.0000.00716.77
7.4.260.0000.00716.75
7.4.250.0030.00316.71
7.4.240.0000.00816.68
7.4.230.0000.00716.64
7.4.220.0060.01516.61
7.4.210.0090.00616.82
7.4.200.0050.00216.74
7.4.160.0040.01316.81
7.4.150.0150.00917.40
7.4.140.0150.00817.86
7.4.130.0090.01516.57
7.4.120.0080.01016.79
7.4.110.0090.00916.81
7.4.100.0130.00616.70
7.4.90.0040.01616.62
7.4.80.0080.01019.39
7.4.70.0160.00616.88
7.4.60.0110.00616.66
7.4.50.0080.00816.91
7.4.40.0070.01016.74
7.4.30.0060.01216.68
7.4.00.0090.00815.13
7.3.330.0000.00513.40
7.3.320.0060.00013.46
7.3.310.0030.00316.71
7.3.300.0040.00416.56
7.3.290.0090.00916.54
7.3.280.0100.00816.56
7.3.270.0180.00017.40
7.3.260.0110.01016.62
7.3.250.0130.00616.63
7.3.240.0060.01116.55
7.3.230.0030.01516.61
7.3.210.0130.00616.81
7.3.200.0000.01916.73
7.3.190.0100.01016.78
7.3.180.0130.00916.73
7.3.170.0120.01216.53
7.3.160.0130.01016.58
7.3.120.0060.01315.18
7.3.110.0060.00915.13
7.3.100.0070.01015.30
7.3.90.0030.01314.78
7.3.80.0040.01115.12
7.3.70.0090.00314.98
7.3.60.0070.00715.03
7.3.50.0000.01015.05
7.3.40.0090.00315.19
7.3.30.0060.00314.96
7.3.20.0060.00916.93
7.3.10.0060.00617.13
7.3.00.0150.00016.91
7.2.330.0030.01616.64
7.2.320.0120.00616.90
7.2.310.0100.01016.84
7.2.300.0030.01616.79
7.2.290.0150.00316.71
7.2.250.0060.01315.45
7.2.240.0030.01715.30
7.2.230.0060.00915.02
7.2.220.0080.00415.02
7.2.210.0030.00915.28
7.2.200.0110.00715.06
7.2.190.0000.01415.35
7.2.180.0070.00715.10
7.2.170.0060.00915.22
7.2.60.0160.00617.23
7.1.330.0030.01015.93
7.1.320.0000.00815.76
7.1.310.0030.01015.87
7.1.300.0070.01016.16
7.1.290.0000.01716.15
7.1.280.0050.00516.14
7.1.270.0070.00716.25
7.1.260.0060.00916.02
7.1.200.0030.01015.86
7.1.100.0030.01317.96
7.1.90.0040.01518.09
7.1.80.0070.01318.44
7.1.70.0150.00317.30
7.1.60.0280.01035.50
7.1.50.0210.01235.16
7.1.40.0180.01534.70
7.1.30.0220.01734.58
7.1.20.0190.01934.63
7.1.10.0100.01016.63
7.1.00.0060.01316.83
7.0.240.0140.00318.04
7.0.230.0080.01218.19
7.0.220.0090.01217.95
7.0.210.0000.01516.95
7.0.200.0070.01017.08
7.0.190.0060.01317.03
7.0.180.0130.00716.36
7.0.170.0060.01316.55
7.0.160.0060.01316.35
7.0.150.0090.01116.47
7.0.140.0060.01416.47
7.0.130.0080.01116.90
7.0.120.0120.00616.76
7.0.110.0100.00316.47
7.0.100.0070.00716.46
7.0.90.0040.01416.58
7.0.80.0070.00716.54
7.0.70.0040.01116.58
7.0.60.0100.00316.30
7.0.50.0080.00816.59
7.0.40.0090.00616.90
7.0.30.0030.01016.45
7.0.20.0070.01016.52
7.0.10.0070.01016.52
7.0.00.0100.00516.52

preferences:
44.53 ms | 401 KiB | 5 Q