3v4l.org

run code in 300+ PHP versions simultaneously
New Raw <?php $_rows = array(); //num of columns each row should have $rows = array(2, 3, 3, 3, 2, 3, 3, 3, 3, 3); $catIncrement = 0; foreach($rows as $rowNumber => $numColumns) { for($i = 0; $i < $numColumns; $i++) { $catIncrement++; $_rows['row' . ($rowNumber + 1)][] = 'Category ' . $catIncrement; } } $_containers = array(); //num of rows in each container $containers = array(1, 3, 1, 5); $rowIncrement = 0; foreach($containers as $contNumber => $numRows) { for($i = 0; $i < $numRows; $i++) { $rowIncrement++; $_containers['cont' . ($contNumber + 1)][] = $_rows['row' . $rowIncrement]; } } foreach($_containers as $_contKey => $rows):?> <?php $firstRow = true; ?> <?php foreach($rows as $rowKey => $categories): ?> <?php $firstCategory = true; ?> <?php foreach($categories as $catKey => $category): ?> <?php //first row -- print open <ul> ?> <?php if($firstRow): ?> <?php $firstRow = false; ?> <?php //if only 2 categories in this row ?> <?php if(count($categories) == 2): ?> <ul class="foundry-listing two-up"> <?php else: ?> <ul class="foundry-listing"> <?php endif; ?> <?php endif; ?> <?php //first category in each row ?> <?php if($firstCategory): ?> <li class="first"><?php echo $category; ?></li> <?php $firstCategory = false; ?> <?php else: ?> <li><?php echo $category; ?></li> <?php endif; ?> <?php endforeach; ?> <?php endforeach; ?> </ul> <?php endforeach; ?>

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.0090.00918.30
8.3.50.0100.00922.11
8.3.40.0080.00818.84
8.3.30.0150.00018.92
8.3.20.0040.00420.29
8.3.10.0040.00423.71
8.3.00.0030.00620.64
8.2.180.0100.01016.50
8.2.170.0120.00322.96
8.2.160.0000.01420.25
8.2.150.0030.00524.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0040.00419.49
8.2.110.0000.01020.53
8.2.100.0100.00318.03
8.2.90.0000.00817.84
8.2.80.0080.00018.16
8.2.70.0040.00417.93
8.2.60.0060.00318.04
8.2.50.0030.00918.10
8.2.40.0000.00820.45
8.2.30.0040.00418.36
8.2.20.0040.00417.67
8.2.10.0040.00418.04
8.2.00.0000.00817.89
8.1.280.0060.01225.92
8.1.270.0090.00023.87
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0060.01220.76
8.1.230.0060.00622.73
8.1.220.0050.00317.91
8.1.210.0030.00620.41
8.1.200.0050.00317.23
8.1.190.0110.00017.10
8.1.180.0040.00418.10
8.1.170.0030.00518.65
8.1.160.0000.00722.10
8.1.150.0000.00718.68
8.1.140.0080.00017.56
8.1.130.0050.00317.87
8.1.120.0000.00717.58
8.1.110.0040.00417.40
8.1.100.0060.00317.38
8.1.90.0030.00517.54
8.1.80.0040.00417.49
8.1.70.0000.00717.41
8.1.60.0030.00517.54
8.1.50.0050.00317.45
8.1.40.0000.01017.47
8.1.30.0030.00617.53
8.1.20.0080.00017.68
8.1.10.0080.00017.53
8.1.00.0040.00417.52
8.0.300.0060.00321.98
8.0.290.0000.00816.88
8.0.280.0040.00418.54
8.0.270.0040.00417.27
8.0.260.0030.00317.21
8.0.250.0030.00317.00
8.0.240.0050.00717.05
8.0.230.0000.00716.92
8.0.220.0000.00716.91
8.0.210.0040.00417.00
8.0.200.0030.00616.97
8.0.190.0000.00917.06
8.0.180.0000.00817.02
8.0.170.0070.00316.97
8.0.160.0040.00416.92
8.0.150.0050.00316.87
8.0.140.0060.00316.93
8.0.130.0000.00513.41
8.0.120.0000.00916.84
8.0.110.0000.00716.82
8.0.100.0000.00716.88
8.0.90.0060.00316.98
8.0.80.0160.00616.88
8.0.70.0080.00016.98
8.0.60.0050.00217.01
8.0.50.0070.00016.88
8.0.30.0110.01017.13
8.0.20.0100.01017.40
8.0.10.0040.00416.91
8.0.00.0060.01416.89
7.4.330.0030.00315.14
7.4.320.0000.00716.55
7.4.300.0000.00716.55
7.4.290.0040.00416.48
7.4.280.0000.00816.55
7.4.270.0030.00416.57
7.4.260.0030.00616.63
7.4.250.0000.00916.65
7.4.240.0050.00216.61
7.4.230.0070.00016.63
7.4.220.0100.01616.61
7.4.210.0060.00916.69
7.4.200.0050.00216.72
7.4.160.0100.00716.64
7.4.150.0170.00717.40
7.4.140.0110.00817.86
7.4.130.0100.01116.67
7.4.120.0140.00516.62
7.4.110.0040.01316.60
7.4.100.0170.00316.50
7.4.90.0110.00916.56
7.4.80.0200.00619.39
7.4.70.0060.01216.64
7.4.60.0110.00816.66
7.4.50.0080.00016.55
7.4.40.0070.01116.55
7.4.30.0070.01116.63
7.4.00.0060.01215.06
7.3.330.0050.00013.22
7.3.320.0000.00513.07
7.3.310.0000.00716.43
7.3.300.0000.00716.30
7.3.290.0000.01316.34
7.3.280.0120.00816.36
7.3.270.0150.00617.40
7.3.260.0150.00416.53
7.3.250.0140.01016.35
7.3.240.0180.00016.59
7.3.230.0080.00916.58
7.3.210.0050.01316.38
7.3.200.0070.01019.39
7.3.190.0040.01816.61
7.3.180.0080.00816.44
7.3.170.0000.01616.58
7.3.160.0140.00416.35
7.3.120.0090.00914.95
7.3.110.0030.01614.92
7.3.100.0030.01415.02
7.3.90.0030.01314.85
7.3.80.0130.00314.99
7.3.70.0120.00314.86
7.3.60.0040.00815.05
7.3.50.0070.00714.64
7.3.40.0080.00614.91
7.3.30.0060.00914.64
7.3.20.0080.00616.72
7.3.10.0060.00716.42
7.3.00.0090.00316.68
7.2.330.0070.01316.75
7.2.320.0060.01216.52
7.2.310.0110.00816.80
7.2.300.0090.00816.74
7.2.290.0090.01516.80
7.2.250.0100.00715.30
7.2.240.0040.01115.19
7.2.230.0090.00614.93
7.2.220.0030.01315.27
7.2.210.0040.01114.91
7.2.200.0040.01115.24
7.2.190.0060.01014.97
7.2.180.0000.01415.22
7.2.170.0060.00615.27
7.2.130.0070.00417.00
7.2.120.0030.00916.66
7.2.110.0060.00317.04
7.2.100.0090.00916.85
7.2.90.0000.01617.02
7.2.80.0120.00616.76
7.2.70.0090.00616.93
7.2.60.0040.00917.00
7.2.50.0040.00817.08
7.2.40.0070.00716.92
7.2.30.0110.00817.10
7.2.20.0040.00717.01
7.2.10.0110.00317.01
7.2.00.0090.00318.14
7.1.330.0070.00715.66
7.1.320.0100.00715.97
7.1.310.0060.00916.01
7.1.300.0030.00916.02
7.1.290.0030.01015.98
7.1.280.0060.00915.85
7.1.270.0070.00715.81
7.1.260.0040.01116.04
7.1.250.0040.00815.98
7.1.100.0070.01018.41
7.1.70.0030.00517.25
7.1.60.0030.02319.70
7.1.50.0030.02116.82
7.1.00.0070.07022.44
7.0.200.0030.00516.96
7.0.140.0030.07322.00
7.0.80.0170.05319.88
7.0.70.0200.07019.91
7.0.60.0070.09719.99
7.0.50.0100.04320.38
7.0.40.0170.03720.00
7.0.30.0170.07720.05
7.0.20.0200.06320.04
7.0.10.0100.08720.07
7.0.00.0070.08020.17
5.6.280.0030.07320.88
5.6.230.0100.05320.68
5.6.220.0070.06020.61
5.6.210.0070.08320.65
5.6.200.0100.04321.00
5.6.190.0170.07721.05
5.6.180.0170.05321.08
5.6.170.0230.05321.07
5.6.160.0130.08021.13
5.6.150.0070.08021.09
5.6.140.0100.08320.97
5.6.130.0100.08321.06
5.6.120.0070.08321.08
5.6.110.0130.08321.05
5.6.100.0070.08021.08
5.6.90.0070.08321.05
5.6.80.0100.05020.33
5.6.70.0200.06720.43
5.6.60.0130.05020.41
5.6.50.0000.08720.45
5.6.40.0130.08720.40
5.6.30.0100.04720.54
5.6.20.0070.07320.38
5.6.10.0070.04320.41
5.6.00.0070.04020.52
5.5.370.0030.07720.43
5.5.360.0130.08020.36
5.5.350.0070.08720.33
5.5.340.0170.07720.88
5.5.330.0100.07020.91
5.5.320.0100.07720.94
5.5.310.0130.08320.93
5.5.300.0030.08320.92
5.5.290.0100.08020.77
5.5.280.0100.06320.89
5.5.270.0130.07720.78
5.5.260.0100.08720.75
5.5.250.0100.07720.63
5.5.240.0100.04320.29
5.5.230.0130.06720.25
5.5.220.0130.07320.27
5.5.210.0100.07320.31
5.5.200.0170.07720.10
5.5.190.0100.07320.10
5.5.180.0070.05720.26
5.5.160.0000.08020.25
5.5.150.0030.07320.21
5.5.140.0070.08020.00
5.5.130.0100.07320.20
5.5.120.0030.06020.24
5.5.110.0070.07720.18
5.5.100.0070.08020.04
5.5.90.0100.07319.96
5.5.80.0070.06320.09
5.5.70.0100.06019.97
5.5.60.0070.07319.94
5.5.50.0070.07720.07
5.5.40.0030.08019.96
5.5.30.0130.07320.07
5.5.20.0030.07720.13
5.5.10.0170.07319.98
5.5.00.0130.07319.96
5.4.450.0100.08319.37
5.4.440.0130.07019.14
5.4.430.0000.08319.44
5.4.420.0070.08019.36
5.4.410.0170.07019.14
5.4.400.0070.07319.08
5.4.390.0070.04719.02
5.4.380.0200.05719.13
5.4.370.0030.06319.08
5.4.360.0170.07019.10
5.4.350.0030.05319.25
5.4.340.0070.08018.84
5.4.320.0130.06319.23
5.4.310.0100.07018.96
5.4.300.0170.07019.12
5.4.290.0070.04718.91
5.4.280.0130.05719.02
5.4.270.0030.08019.07
5.4.260.0070.04019.04
5.4.250.0070.07719.07
5.4.240.0030.05719.14
5.4.230.0030.07719.02
5.4.220.0130.06718.95
5.4.210.0170.07019.14
5.4.200.0100.04319.12
5.4.190.0130.06719.19
5.4.180.0030.07019.04
5.4.170.0130.04318.80
5.4.160.0000.08018.96
5.4.150.0170.07019.21
5.4.140.0200.05316.33
5.4.130.0100.07016.32
5.4.120.0100.05716.08
5.4.110.0070.04716.22
5.4.100.0100.07016.23
5.4.90.0100.07016.23
5.4.80.0170.07016.20
5.4.70.0100.07316.22
5.4.60.0130.05716.34
5.4.50.0100.07316.30
5.4.40.0070.07316.45
5.4.30.0100.07016.30
5.4.20.0100.05016.41
5.4.10.0030.07716.22
5.4.00.0130.06715.80
5.3.290.0030.08014.65
5.3.280.0100.07714.61
5.3.270.0030.07314.57
5.3.260.0070.07314.62
5.3.250.0070.07014.57
5.3.240.0070.07714.64
5.3.230.0100.07314.45
5.3.220.0130.06314.45
5.3.210.0070.08014.54
5.3.200.0000.04714.43
5.3.190.0070.07314.59
5.3.180.0030.04714.41
5.3.170.0100.07714.55
5.3.160.0070.07714.59
5.3.150.0030.07014.55
5.3.140.0200.04714.40
5.3.130.0130.07014.56
5.3.120.0070.05714.58
5.3.110.0030.08014.56
5.3.100.0030.05314.02
5.3.90.0030.08013.86
5.3.80.0070.06313.90
5.3.70.0030.07714.02
5.3.60.0000.08014.03
5.3.50.0100.07013.75
5.3.40.0070.04313.96
5.3.30.0070.05713.87
5.3.20.0100.03313.68
5.3.10.0070.04713.67
5.3.00.0070.03713.61
5.2.170.0000.04711.82
5.2.160.0130.05311.82
5.2.150.0000.06711.82
5.2.140.0070.05311.82
5.2.130.0030.06311.82
5.2.120.0030.04711.82
5.2.110.0000.06711.82
5.2.100.0100.03011.82
5.2.90.0000.04311.82
5.2.80.0130.02711.82
5.2.70.0030.02711.82
5.2.60.0000.03011.82
5.2.50.0070.03711.82
5.2.40.0130.02311.82
5.2.30.0030.03311.82
5.2.20.0070.02711.82
5.2.10.0000.03011.82
5.2.00.0000.03011.82
5.1.60.0030.02311.82
5.1.50.0000.02711.82
5.1.40.0030.03011.82
5.1.30.0000.02711.82
5.1.20.0000.03311.82
5.1.10.0030.02711.82
5.1.00.0000.03011.82
5.0.50.0030.02011.82
5.0.40.0070.02311.82
5.0.30.0030.06011.82
5.0.20.0070.01711.82
5.0.10.0000.02011.82
5.0.00.0030.03011.82
4.4.90.0000.01711.82
4.4.80.0030.01711.82
4.4.70.0000.02711.82
4.4.60.0000.01711.82
4.4.50.0030.01711.82
4.4.40.0000.02711.82
4.4.30.0070.01711.82
4.4.20.0030.01311.82
4.4.10.0000.02011.82
4.4.00.0030.02711.82
4.3.110.0030.02311.82
4.3.100.0000.01711.82
4.3.90.0030.02711.82
4.3.80.0000.02711.82
4.3.70.0070.02711.82
4.3.60.0000.01711.82
4.3.50.0030.01311.82
4.3.40.0000.02311.82
4.3.30.0000.01711.82
4.3.20.0000.02011.82
4.3.10.0070.01011.82
4.3.00.0000.03311.82

preferences:
38.74 ms | 401 KiB | 5 Q