3v4l.org

run code in 300+ PHP versions simultaneously
<?php $accuplacer_assoc = [ array( "Reading Comprehension" => "70", "Branching Profile" => "Reading Comprehension - Post Test" ), array( "Elementary Algebra" => "83", "Branching Profile" => "Math - Post Test" ), ]; foreach ($accuplacer_assoc as $index) { if (!empty($accuplacer_assoc[$index]['Branching Profile'])) { var_dump("checking to see if accuplacer_assoc[index][i] is empty: " . !empty($accuplacer_assoc[$index][$i]) . "<br /><br />"); break; } else { if (preg_match("/Reading Comprehension - Post Test/i", $BRANCHING_PROFILE) === 1) { $code='PA2'; } else if (preg_match("/^Sentence Skills - Post Test$/i", $BRANCHING_PROFILE) === 1) { $code='PA1'; } else if (preg_match("/^Math - Post Test$/i", $BRANCHING_PROFILE) === 1 ) { $code='PA5'; } else if (preg_match("/^Elementary Algebra - Post Test$/i", $BRANCHING_PROFILE) === 1) { $code='PA6'; } else if (preg_match("/^College Level Math - Post Test$/i", $BRANCHING_PROFILE) === 1) { $code='PA7'; } else if (preg_match("/^Reading Comprehension$/i" , $BRANCHING_PROFILE ) === 1) { $code='AC2'; } else if (preg_match("/^Sentence Skills$/i" ,$BRANCHING_PROFILE) === 1) { $code='AC1'; } else if (preg_match("/^Arithmetic$/i", $BRANCHING_PROFILE) === 1) { $code='AC5'; } else if (preg_match("/^Elementary Algebra$/i", $BRANCHING_PROFILE) === 1) { $code='AC6'; } else if (preg_match("/^College Level Math$/i", $BRANCHING_PROFILE) === 1) { $code='AC7'; } } if (preg_match("/Reading Comprehension - Post Test/i", $BRANCHING_PROFILE) === 1) { $code='PA2'; } else if (preg_match("/^Sentence Skills - Post Test$/i", $BRANCHING_PROFILE) === 1) { $code='PA1'; } else if ((preg_match("/^Math - Post Test$/i", $BRANCHING_PROFILE) === 1) && (preg_match("/^Arithmetic/i", $accuplacer_assoc[$index]['Arithmetic']) === 1)) { $code='PA5'; } else if ((preg_match("/^Math - Post Test$/i", $BRANCHING_PROFILE) === 1) && (preg_match("/^Elementary Algebra/i", $accuplacer_assoc[$index]['Elementary Algebra']) === 1)) { $code='PA6'; } else if ((preg_match("/^Math - Post Test$/i", $BRANCHING_PROFILE) === 1) && (preg_match("/^College Level Math/i", $accuplacer_assoc[$index]['College Level Math']) === 1)) { $code='PA7'; } else if (preg_match("/^Reading Comprehension$/i" , $BRANCHING_PROFILE ) === 1) { $code='AC2'; } else if (preg_match("/^Sentence Skills$/i" ,$BRANCHING_PROFILE) === 1) { $code='AC1'; } else if (preg_match("/^Arithmetic$/i", $BRANCHING_PROFILE) === 1) { $code='AC5'; } else if (preg_match("/^Elementary Algebra$/i", $BRANCHING_PROFILE) === 1) { $code='AC6'; } else if (preg_match("/^College Level Math$/i", $BRANCHING_PROFILE) === 1) { $code='AC7'; } }

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.0070.00716.88
8.3.50.0130.00618.30
8.3.40.0120.00618.97
8.3.30.0040.01118.84
8.3.20.0000.00819.14
8.3.10.0000.00823.48
8.3.00.0040.00420.88
8.2.180.0110.00718.54
8.2.170.0110.00422.96
8.2.160.0070.00720.53
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0040.00419.76
8.2.120.0050.00326.35
8.2.110.0030.00620.90
8.2.100.0070.00417.97
8.2.90.0040.00421.20
8.2.80.0000.00818.18
8.2.70.0050.00318.05
8.2.60.0000.00818.22
8.2.50.0040.00418.10
8.2.40.0060.00320.55
8.2.30.0080.00019.38
8.2.20.0050.00218.20
8.2.10.0040.00418.21
8.2.00.0000.00817.88
8.1.280.0140.00725.92
8.1.270.0060.00323.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00022.29
8.1.230.0040.00722.82
8.1.220.0080.00017.91
8.1.210.0050.00319.29
8.1.200.0000.00917.48
8.1.190.0040.00417.48
8.1.180.0030.00518.10
8.1.170.0000.00818.77
8.1.160.0040.00419.00
8.1.150.0000.00720.35
8.1.140.0000.00719.66
8.1.130.0040.00417.77
8.1.120.0000.00717.44
8.1.110.0040.00417.56
8.1.100.0030.00317.44
8.1.90.0000.00717.44
8.1.80.0070.00017.54
8.1.70.0000.00717.42
8.1.60.0000.00817.71
8.1.50.0080.00017.69
8.1.40.0060.00317.66
8.1.30.0030.00617.73
8.1.20.0040.00417.73
8.1.10.0000.00817.70
8.1.00.0040.00417.55
8.0.300.0040.00419.72
8.0.290.0000.00817.00
8.0.280.0030.00418.44
8.0.270.0000.00717.24
8.0.260.0040.00417.32
8.0.250.0000.00716.99
8.0.240.0060.00417.14
8.0.230.0030.00317.11
8.0.220.0000.00716.92
8.0.210.0030.00316.89
8.0.200.0000.00617.11
8.0.190.0030.00617.04
8.0.180.0000.00716.94
8.0.170.0000.00817.06
8.0.160.0000.00717.02
8.0.150.0050.00316.91
8.0.140.0040.00416.96
8.0.130.0030.00313.50
8.0.120.0030.00516.97
8.0.110.0040.00416.99
8.0.100.0030.00317.02
8.0.90.0070.00017.11
8.0.80.0070.01317.05
8.0.70.0070.00016.99
8.0.60.0070.00016.85
8.0.50.0000.00817.10
8.0.30.0130.00417.22
8.0.20.0160.00517.40
8.0.10.0050.00217.04
8.0.00.0130.00316.63
7.4.330.0000.00615.55
7.4.320.0000.00716.91
7.4.300.0060.00016.81
7.4.290.0000.00716.87
7.4.280.0000.00916.92
7.4.270.0040.00416.71
7.4.260.0040.00416.89
7.4.250.0040.00416.79
7.4.240.0030.00516.80
7.4.230.0000.00816.94
7.4.220.0060.01216.96
7.4.210.0000.01517.01
7.4.200.0030.00316.80
7.4.160.0140.00416.81
7.4.150.0060.01617.40
7.4.140.0130.00617.86
7.4.130.0120.00516.80
7.4.120.0080.01016.75
7.4.110.0180.00016.79
7.4.100.0140.01016.76
7.4.90.0090.01216.80
7.4.80.0060.01819.39
7.4.70.0140.00716.85
7.4.60.0130.00316.70
7.4.50.0110.00316.68
7.4.40.0100.00716.90
7.4.30.0150.01516.72
7.4.10.0080.01115.30
7.4.00.0100.00715.26
7.3.330.0040.00413.34
7.3.320.0050.00013.36
7.3.310.0070.00016.68
7.3.300.0070.00016.59
7.3.290.0060.00816.67
7.3.280.0090.01216.60
7.3.270.0100.01017.40
7.3.260.0080.01016.85
7.3.250.0150.00416.55
7.3.240.0080.00916.63
7.3.230.0070.01116.79
7.3.210.0030.01516.77
7.3.200.0000.02216.80
7.3.190.0070.01016.59
7.3.180.0140.00316.85
7.3.170.0120.00916.59
7.3.160.0080.01216.85
7.3.130.0130.00614.87
7.3.120.0040.01415.04
7.3.110.0100.01014.96
7.3.100.0080.00414.97
7.3.90.0090.00914.96
7.3.80.0030.00915.17
7.3.70.0060.00915.12
7.3.60.0030.00614.84
7.3.50.0060.00314.96
7.3.40.0070.00714.81
7.3.30.0030.01015.13
7.3.20.0070.00716.61
7.3.10.0100.00316.77
7.3.00.0070.00516.84
7.2.330.0060.01217.09
7.2.320.0150.00916.80
7.2.310.0070.01116.66
7.2.300.0070.01516.88
7.2.290.0150.00316.91
7.2.260.0060.00915.00
7.2.250.0060.01215.44
7.2.240.0000.01515.20
7.2.230.0000.01515.07
7.2.220.0030.01215.14
7.2.210.0060.00915.36
7.2.200.0090.00615.10
7.2.190.0000.01314.93
7.2.180.0070.00414.96
7.2.170.0000.01315.28
7.2.160.0130.00314.92
7.2.150.0030.00816.98
7.2.140.0070.01017.05
7.2.130.0040.00916.97
7.2.120.0060.00917.04
7.2.110.0080.00517.00
7.2.100.0040.01216.86
7.2.90.0030.00916.99
7.2.80.0070.00817.10
7.2.70.0060.00817.07
7.2.60.0030.00917.01
7.2.50.0070.00517.01
7.2.40.0090.00417.21
7.2.30.0060.00917.13
7.2.20.0050.00917.07
7.2.10.0050.00817.11
7.2.00.0050.00717.01
7.1.330.0060.00615.70
7.1.320.0030.00915.90
7.1.310.0040.00416.12
7.1.300.0090.00015.50
7.1.290.0000.01015.61
7.1.280.0000.01615.82
7.1.270.0090.00616.03
7.1.260.0060.01015.52
7.1.250.0030.00716.00
7.1.240.0070.00315.83
7.1.230.0030.00615.76
7.1.220.0070.00715.98
7.1.210.0090.00615.83
7.1.200.0060.00515.92
7.1.190.0070.00715.88
7.1.180.0000.01315.70
7.1.170.0060.00916.09
7.1.160.0080.00816.07
7.1.150.0030.00916.09
7.1.140.0100.00715.93
7.1.130.0040.01115.99
7.1.120.0030.00915.91
7.1.110.0090.00015.81
7.1.100.0030.01015.67
7.1.90.0030.00715.82
7.1.80.0120.00315.93
7.1.70.0030.00916.40
7.1.60.0080.00616.81
7.1.50.0030.01315.74
7.1.40.0060.00915.80
7.1.30.0030.00916.11
7.1.20.0000.01215.93
7.1.10.0100.00715.59
7.1.00.0030.04019.15
7.0.330.0040.01115.52
7.0.320.0040.00815.77
7.0.310.0000.01415.58
7.0.300.0070.00415.38
7.0.290.0110.00315.34
7.0.280.0070.00715.22
7.0.270.0000.01115.69
7.0.260.0030.01015.54
7.0.250.0100.00315.57
7.0.240.0030.00715.61
7.0.230.0060.00915.65
7.0.220.0070.00715.61
7.0.210.0060.00615.53
7.0.200.0150.01015.22
7.0.190.0070.01015.73
7.0.180.0100.00715.72
7.0.170.0100.00615.71
7.0.160.0080.00415.60
7.0.150.0040.01115.50
7.0.140.0090.00315.38
7.0.130.0070.04018.96
7.0.120.0060.03318.86
7.0.110.0150.02718.63
7.0.100.0070.03118.77
7.0.90.0030.03618.65
7.0.80.0070.03718.89
7.0.70.0110.04018.77
7.0.60.0080.03018.69
7.0.50.0140.02518.75
7.0.40.0100.03018.21
7.0.30.0080.03318.24
7.0.20.0100.03218.17
7.0.10.0110.02718.25
7.0.00.0050.03318.21
5.6.400.0000.01714.52
5.6.390.0120.00314.47
5.6.380.0100.00714.48
5.6.370.0100.00714.38
5.6.360.0060.00314.49
5.6.350.0060.00714.62
5.6.340.0030.00614.57
5.6.330.0060.01014.84
5.6.320.0030.01314.45
5.6.310.0070.01014.38
5.6.300.0050.00414.53
5.6.290.0060.00914.71
5.6.280.0050.04017.74
5.6.270.0100.03417.94
5.6.260.0100.04217.79
5.6.250.0080.03117.79
5.6.240.0110.04017.62
5.6.230.0110.03117.63
5.6.220.0060.03917.76
5.6.210.0100.03317.69
5.6.200.0130.03617.61
5.6.190.0080.03217.74
5.6.180.0070.04517.61
5.6.170.0080.03317.71
5.6.160.0070.04117.79
5.6.150.0090.03517.63
5.6.140.0120.03517.57
5.6.130.0030.04517.65
5.6.120.0030.04317.72
5.6.110.0110.04017.74
5.6.100.0070.04217.68
5.6.90.0100.03317.96
5.6.80.0130.03217.33
5.6.70.0100.02817.38
5.6.60.0080.03217.41
5.6.50.0120.02717.40
5.6.40.0110.03017.32
5.6.30.0120.03317.39
5.6.20.0100.04217.41
5.6.10.0030.03417.32
5.6.00.0110.03117.46

preferences:
57.55 ms | 400 KiB | 5 Q