3v4l.org

run code in 300+ PHP versions simultaneously
<?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.0150.00718.43
8.3.50.0070.01021.14
8.3.40.0090.00618.84
8.3.30.0070.00720.17
8.3.20.0040.00420.31
8.3.10.0050.00322.09
8.3.00.0050.00322.44
8.2.180.0170.00716.75
8.2.170.0130.01022.96
8.2.160.0030.00922.18
8.2.150.0070.01024.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0080.00020.66
8.2.110.0030.00622.07
8.2.100.0100.00317.72
8.2.90.0040.00417.63
8.2.80.0060.00317.97
8.2.70.0030.00618.05
8.2.60.0000.01218.05
8.2.50.0040.00419.66
8.2.40.0030.00520.51
8.2.30.0040.00419.49
8.2.20.0040.00417.76
8.2.10.0040.00417.78
8.2.00.0030.00717.76
8.1.280.0130.00625.92
8.1.270.0080.00023.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00023.80
8.1.230.0040.00818.99
8.1.220.0030.00517.79
8.1.210.0060.00318.77
8.1.200.0070.00317.23
8.1.190.0030.00717.22
8.1.180.0040.00418.10
8.1.170.0000.00918.65
8.1.160.0000.00718.91
8.1.150.0030.00518.67
8.1.140.0000.00717.42
8.1.130.0000.00717.78
8.1.120.0040.00417.57
8.1.110.0050.00317.41
8.1.100.0000.00717.45
8.1.90.0040.00417.54
8.1.80.0000.00717.36
8.1.70.0070.00017.48
8.1.60.0040.00517.66
8.1.50.0040.00417.61
8.1.40.0060.00317.60
8.1.30.0040.00417.66
8.1.20.0040.00417.54
8.1.10.0000.00817.50
8.1.00.0000.00817.49
8.0.300.0050.00321.57
8.0.290.0040.00416.75
8.0.280.0000.00718.41
8.0.270.0020.00517.32
8.0.260.0030.00316.90
8.0.250.0040.00416.87
8.0.240.0040.00417.00
8.0.230.0000.00717.03
8.0.220.0070.00016.92
8.0.210.0050.00216.91
8.0.200.0000.00716.98
8.0.190.0090.00016.90
8.0.180.0040.00416.95
8.0.170.0080.00016.88
8.0.160.0050.00216.83
8.0.150.0050.00216.79
8.0.140.0030.00516.84
8.0.130.0000.00613.41
8.0.120.0000.00816.91
8.0.110.0080.00016.91
8.0.100.0000.00716.81
8.0.90.0000.00716.83
8.0.80.0090.00616.91
8.0.70.0050.00216.81
8.0.60.0080.00016.96
8.0.50.0070.00016.74
8.0.30.0090.01117.06
8.0.20.0090.01117.40
8.0.10.0000.00817.01
8.0.00.0130.01116.78
7.4.330.0060.00015.00
7.4.320.0030.00316.56
7.4.300.0060.00016.65
7.4.290.0030.00316.69
7.4.280.0000.00716.64
7.4.270.0000.00816.66
7.4.260.0070.00013.36
7.4.250.0000.00816.61
7.4.240.0040.00416.51
7.4.230.0040.00416.46
7.4.220.0060.01516.75
7.4.210.0050.01016.64
7.4.200.0000.00816.41
7.4.190.0030.00316.46
7.4.160.0070.01016.52
7.4.150.0140.00917.40
7.4.140.0080.01117.86
7.4.130.0110.00716.58
7.4.120.0100.00916.68
7.4.110.0080.01216.52
7.4.100.0140.00316.63
7.4.90.0090.00916.53
7.4.80.0090.00919.39
7.4.70.0140.00316.64
7.4.60.0070.01316.46
7.4.50.0100.00016.69
7.4.40.0030.01222.77
7.4.30.0160.00316.46
7.4.10.0090.00915.75
7.4.00.0060.01015.38
7.3.330.0000.00513.11
7.3.320.0000.00513.20
7.3.310.0030.00316.21
7.3.300.0070.00016.41
7.3.290.0030.01616.27
7.3.280.0080.00916.32
7.3.270.0090.00917.40
7.3.260.0150.00416.65
7.3.250.0110.00716.30
7.3.240.0060.01516.52
7.3.230.0120.00916.41
7.3.210.0120.00916.52
7.3.200.0120.00619.39
7.3.190.0120.00916.27
7.3.180.0060.01116.30
7.3.170.0140.00316.40
7.3.160.0070.01416.72
7.3.130.0040.01315.52
7.3.120.0070.00915.14
7.3.110.0070.00915.27
7.3.100.0070.00815.32
7.3.90.0080.00415.18
7.3.80.0070.00815.27
7.3.70.0050.00815.28
7.3.60.0060.00815.25
7.3.50.0060.00915.27
7.3.40.0050.00815.29
7.3.30.0070.00815.24
7.3.20.0050.00917.05
7.3.10.0060.00717.11
7.3.00.0060.00917.04
7.2.330.0140.00716.59
7.2.320.0120.00616.59
7.2.310.0160.00816.81
7.2.300.0080.01216.82
7.2.290.0210.00516.77
7.2.260.0080.01215.99
7.2.250.0090.01015.45
7.2.240.0070.01115.49
7.2.230.0060.00615.61
7.2.220.0070.00715.38
7.2.210.0060.00815.57
7.2.200.0040.00915.52
7.2.190.0070.00615.48
7.2.180.0030.01215.49
7.2.170.0090.00515.38
7.2.160.0080.00915.70
7.2.150.0040.01017.78
7.2.140.0060.00917.53
7.2.130.0080.00317.73
7.2.120.0040.00917.73
7.2.110.0030.00917.52
7.2.100.0090.00617.54
7.2.90.0030.01017.67
7.2.80.0070.00917.33
7.2.70.0100.00517.66
7.2.60.0040.01217.29
7.2.50.0080.01117.63
7.2.40.0090.00917.74
7.2.30.0060.00917.48
7.2.20.0060.00817.82
7.2.10.0030.01317.67
7.2.00.0040.01018.13
7.1.330.0070.00716.22
7.1.320.0070.00816.18
7.1.310.0060.00816.08
7.1.300.0060.00716.18
7.1.290.0030.00916.13
7.1.280.0050.00716.17
7.1.270.0010.01216.16
7.1.260.0050.00916.09
7.1.250.0060.00816.62
7.1.240.0030.01416.52
7.1.230.0020.01116.73
7.1.220.0010.01016.63
7.1.210.0050.00916.45
7.1.200.0040.00916.33
7.1.190.0030.00916.57
7.1.180.0050.01216.67
7.1.170.0030.01116.50
7.1.160.0080.00616.63
7.1.150.0070.00516.67
7.1.140.0070.01116.61
7.1.130.0060.00716.56
7.1.120.0100.00516.61
7.1.110.0070.00616.70
7.1.100.0060.00717.11
7.1.90.0040.01116.75
7.1.80.0100.00516.51
7.1.70.0040.00916.78
7.1.60.0040.01017.45
7.1.50.0070.00916.76
7.1.40.0020.01316.72
7.1.30.0070.00816.65
7.1.20.0070.00516.55
7.1.10.0080.00616.53
7.1.00.0050.02618.47
7.0.330.0060.00516.20
7.0.320.0060.00916.23
7.0.310.0050.00916.03
7.0.300.0080.00816.28
7.0.290.0060.01016.27
7.0.280.0030.01016.23
7.0.270.0040.00916.15
7.0.260.0020.01016.29
7.0.250.0060.00516.32
7.0.240.0110.00316.24
7.0.230.0050.01016.26
7.0.220.0030.01116.15
7.0.210.0070.00516.23
7.0.200.0070.00716.47
7.0.190.0070.00716.27
7.0.180.0030.01016.24
7.0.170.0070.00716.24
7.0.160.0050.00916.15
7.0.150.0020.01116.22
7.0.140.0030.03118.19
7.0.130.0080.00616.24
7.0.120.0050.00916.18
7.0.110.0120.00216.11
7.0.100.0090.01717.54
7.0.90.0030.03417.48
7.0.80.0090.02117.47
7.0.70.0050.01817.52
7.0.60.0070.02317.39
7.0.50.0090.03217.63
7.0.40.0050.03416.24
7.0.30.0080.03216.14
7.0.20.0100.03216.10
7.0.10.0030.02416.11
7.0.00.0090.02516.06
5.6.400.0060.01015.28
5.6.390.0120.00415.18
5.6.380.0050.01115.28
5.6.370.0050.00915.48
5.6.360.0070.01215.39
5.6.350.0080.00615.14
5.6.340.0020.01315.29
5.6.330.0020.01515.11
5.6.320.0080.00615.42
5.6.310.0050.01015.30
5.6.300.0040.00715.18
5.6.290.0050.00915.23
5.6.280.0040.03017.05
5.6.270.0050.00715.22
5.6.260.0060.00715.18
5.6.250.0050.02217.00
5.6.240.0070.02117.02
5.6.230.0080.03217.02
5.6.220.0120.02817.09
5.6.210.0050.03417.03
5.6.200.0060.02517.12
5.6.190.0040.03517.15
5.6.180.0090.03217.20
5.6.170.0110.01717.14
5.6.160.0080.03317.19
5.6.150.0070.03117.21
5.6.140.0070.02917.10
5.6.130.0040.03217.27
5.6.120.0080.03317.06
5.6.110.0150.01317.07
5.6.100.0060.03517.17
5.6.90.0110.02917.00
5.6.80.0070.02716.94
5.6.70.0100.01816.91
5.6.60.0020.02616.76
5.6.50.0110.02916.81
5.6.40.0110.03016.95
5.6.30.0090.03216.88
5.6.20.0040.03716.84
5.6.10.0060.03016.90
5.6.00.0030.03316.94
5.5.380.0060.03116.78
5.5.370.0040.03616.99
5.5.360.0100.03116.74
5.5.350.0120.02516.87
5.5.340.0100.02717.01
5.5.330.0090.02817.10
5.5.320.0070.02117.02
5.5.310.0100.03017.16
5.5.300.0030.03616.98
5.5.290.0100.02816.98
5.5.280.0070.02917.12
5.5.270.0120.02816.87
5.5.260.0080.03217.08
5.5.250.0040.02317.02
5.5.240.0050.03216.67
5.5.230.0130.02516.77
5.5.220.0040.03316.69
5.5.210.0040.03516.86
5.5.200.0080.02916.88
5.5.190.0100.02816.70
5.5.180.0050.02516.83
5.5.170.0070.00714.99
5.5.160.0090.02816.72
5.5.150.0070.02916.79
5.5.140.0080.03016.92
5.5.130.0090.03016.90
5.5.120.0050.03516.75
5.5.110.0110.02816.75
5.5.100.0060.03016.69
5.5.90.0080.02816.77
5.5.80.0050.02216.79
5.5.70.0080.02716.87
5.5.60.0080.02916.90
5.5.50.0060.03416.69
5.5.40.0080.03016.77
5.5.30.0080.03116.76
5.5.20.0100.02816.62
5.5.10.0080.03116.84
5.5.00.0070.03016.77
5.4.450.0050.03114.67
5.4.440.0090.02714.67
5.4.430.0080.02514.77
5.4.420.0080.02714.60
5.4.410.0080.02814.64
5.4.400.0100.02214.60
5.4.390.0070.03014.64
5.4.380.0010.02414.71
5.4.370.0080.02914.68
5.4.360.0040.02914.62
5.4.350.0080.02814.57
5.4.340.0060.02814.59
5.4.330.0030.00912.47
5.4.320.0030.03414.51
5.4.310.0090.02814.75
5.4.300.0060.02814.66
5.4.290.0050.02614.65
5.4.280.0070.02414.61
5.4.270.0060.02814.45
5.4.260.0070.02814.58
5.4.250.0060.03014.62
5.4.240.0100.01814.53
5.4.230.0050.02814.66
5.4.220.0080.02714.54
5.4.210.0070.02914.64
5.4.200.0130.02214.58
5.4.190.0070.01814.54
5.4.180.0060.01814.64
5.4.170.0070.02514.58
5.4.160.0060.02514.72
5.4.150.0080.02814.54
5.4.140.0090.02413.72
5.4.130.0050.02613.60
5.4.120.0080.02313.79
5.4.110.0040.03213.80
5.4.100.0060.02713.63
5.4.90.0040.02013.69
5.4.80.0070.02613.65
5.4.70.0030.02113.60
5.4.60.0080.02313.69
5.4.50.0060.02213.63
5.4.40.0040.02913.75
5.4.30.0050.02713.63
5.4.20.0070.02013.72
5.4.10.0030.02813.64
5.4.00.0040.03013.53
5.3.290.0030.03312.98
5.3.280.0070.03012.94
5.3.270.0040.02813.00
5.3.260.0040.02912.93
5.3.250.0090.01912.87
5.3.240.0040.02912.97
5.3.230.0050.01912.91
5.3.220.0040.03012.92
5.3.210.0050.02812.91
5.3.200.0080.02512.93
5.3.190.0070.02812.97
5.3.180.0080.02213.00
5.3.170.0050.03112.94
5.3.160.0080.02712.96
5.3.150.0020.03212.97
5.3.140.0070.02812.86
5.3.130.0030.03112.95
5.3.120.0000.03212.95
5.3.110.0090.02612.91
5.3.100.0080.02912.75
5.3.90.0070.02512.76
5.3.80.0060.02912.72
5.3.70.0060.02912.73
5.3.60.0050.02712.74
5.3.50.0030.02012.71
5.3.40.0070.01712.70
5.3.30.0040.03012.62
5.3.20.0070.02412.62
5.3.10.0070.02812.59
5.3.00.0060.02712.61
5.2.170.0030.06711.01
5.2.160.0070.04710.98
5.2.150.0100.05711.13
5.2.140.0100.06311.15
5.2.130.0070.05711.12
5.2.120.0000.06311.04
5.2.110.0070.06010.92
5.2.100.0070.04711.11
5.2.90.0200.05010.96
5.2.80.0070.05010.91
5.2.70.0000.05011.10
5.2.60.0130.04311.08
5.2.50.0100.05011.04
5.2.40.0070.05710.82
5.2.30.0070.06010.75
5.2.20.0070.06010.83
5.2.10.0030.04010.87
5.2.00.0030.06710.86
5.1.60.0030.05310.08
5.1.50.0030.03010.01
5.1.40.0030.05710.07
5.1.30.0070.05310.49
5.1.20.0000.05710.36
5.1.10.0000.04310.19
5.1.00.0100.02310.16
5.0.50.0030.0408.66
5.0.40.0070.0408.52
5.0.30.0000.0338.24
5.0.20.0000.0208.29
5.0.10.0100.0378.18
5.0.00.0070.0638.26
4.4.90.0030.0338.04
4.4.80.0030.0378.04
4.4.70.0030.0338.04
4.4.60.0030.0238.04
4.4.50.0000.0208.04
4.4.40.0030.0578.04
4.4.30.0000.0378.04
4.4.20.0070.0278.04
4.4.10.0070.0338.04
4.4.00.0070.0508.04
4.3.110.0000.0208.04
4.3.100.0000.0178.04
4.3.90.0000.0378.04
4.3.80.0030.0538.04
4.3.70.0000.0338.04
4.3.60.0100.0308.04
4.3.50.0000.0338.04
4.3.40.0070.0378.04
4.3.30.0000.0378.04
4.3.20.0000.0378.04
4.3.10.0030.0308.04
4.3.00.0000.0378.04

preferences:
49.13 ms | 401 KiB | 5 Q