3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_rows = array(); $_sub_categories = array(); for($i = 1; $i <= 28; $i++) { if(in_array($i, array(1,2))) { $_rows['row1'][] = 'Category '.$i; } if(in_array($i, array(3,4,5))) { $_rows['row2'][] = 'Category '.$i; } if(in_array($i, array(6,7,8))) { $_rows['row3'][] = 'Category '.$i; } if(in_array($i, array(9,10,11))) { $_rows['row4'][] = 'Category '.$i; } if(in_array($i, array(12,13))) { $_rows['row5'][] = 'Category '.$i; } if(in_array($i, array(14,15,16))) { $_rows['row6'][] = 'Category '.$i; } if(in_array($i, array(17,18,19))) { $_rows['row7'][] = 'Category '.$i; } if(in_array($i, array(20,21,22))) { $_rows['row8'][] = 'Category '.$i; } if(in_array($i, array(23,24,25))) { $_rows['row9'][] = 'Category '.$i; } if(in_array($i, array(26,27,28))) { $_rows['row10'][] = 'Category '.$i; } } foreach($_rows as $_row) { if(in_array(key($_row), array('row1'))) { $_sub_categories[] = $_row; } if(in_array(key($_row), array('row2','row3','row4'))) { $_sub_categories[] = $_row; } if(in_array(key($_row), array('row5'))) { $_sub_categories[] = $_row; } if(in_array(key($_row), array('row6','row7','row8','row9','row10'))) { $_sub_categories[] = $_row; } } foreach($_sub_categories as $_subcat):?> <ul> <?php $j = 0; ?> <?php foreach($_subcat as $_sub_category): $j++; ?> <li <?php if($j==1) { echo 'class="first"'; } ?>><?php echo $_sub_category; ?></li> <?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.0110.00716.88
8.3.50.0130.00717.43
8.3.40.0100.01018.79
8.3.30.0180.00418.85
8.3.20.0050.00318.64
8.3.10.0000.00818.72
8.3.00.0000.00919.38
8.2.180.0100.01016.75
8.2.170.0070.00722.96
8.2.160.0090.00621.05
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00820.94
8.2.110.0100.00019.00
8.2.100.0090.00317.91
8.2.90.0040.00417.75
8.2.80.0000.00818.74
8.2.70.0040.00417.63
8.2.60.0050.00317.63
8.2.50.0040.00417.63
8.2.40.0030.00619.68
8.2.30.0050.00218.10
8.2.20.0030.00617.81
8.2.10.0000.00817.76
8.2.00.0040.00717.63
8.1.280.0120.00325.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00322.27
8.1.230.0040.00720.84
8.1.220.0000.00818.69
8.1.210.0040.00419.20
8.1.200.0040.00417.47
8.1.190.0060.00317.48
8.1.180.0000.00818.10
8.1.170.0050.00317.62
8.1.160.0040.00418.82
8.1.150.0040.00418.73
8.1.140.0040.00417.51
8.1.130.0070.00017.78
8.1.120.0040.00417.40
8.1.110.0000.00717.50
8.1.100.0000.00817.53
8.1.90.0000.00717.49
8.1.80.0030.00517.45
8.1.70.0070.00017.52
8.1.60.0030.00517.55
8.1.50.0060.00317.52
8.1.40.0080.00017.48
8.1.30.0000.00817.54
8.1.20.0000.00917.66
8.1.10.0030.00617.61
8.1.00.0000.00817.48
8.0.300.0080.00020.02
8.0.290.0040.00416.75
8.0.280.0070.00018.51
8.0.270.0000.00817.33
8.0.260.0060.00316.93
8.0.250.0000.00717.00
8.0.240.0030.00417.00
8.0.230.0000.00716.84
8.0.220.0040.00416.91
8.0.210.0070.00016.95
8.0.200.0000.00617.01
8.0.190.0000.00717.06
8.0.180.0040.00417.02
8.0.170.0000.00916.84
8.0.160.0000.00716.93
8.0.150.0080.00016.89
8.0.140.0060.00316.86
8.0.130.0060.00013.31
8.0.120.0030.00516.89
8.0.110.0080.00016.91
8.0.100.0040.00416.85
8.0.90.0000.00816.84
8.0.80.0120.00316.93
8.0.70.0040.00416.98
8.0.60.0040.00416.88
8.0.50.0040.00416.99
8.0.30.0070.01117.09
8.0.20.0070.01417.27
8.0.10.0070.00017.11
8.0.00.0120.00816.84
7.4.330.0030.00213.09
7.4.320.0060.00016.66
7.4.300.0060.00016.55
7.4.290.0050.00216.58
7.4.280.0040.00416.65
7.4.270.0000.00916.58
7.4.260.0000.00613.36
7.4.250.0050.00316.64
7.4.240.0050.00216.57
7.4.230.0000.00816.45
7.4.220.0090.01216.58
7.4.210.0090.00916.66
7.4.200.0050.00316.41
7.4.190.0050.00316.73
7.4.160.0070.01116.60
7.4.150.0180.00316.61
7.4.140.0150.01016.48
7.4.130.0140.01116.56
7.4.120.0120.00816.45
7.4.110.0130.01316.53
7.4.100.0120.01216.71
7.4.90.0110.00816.57
7.4.80.0100.01019.39
7.4.70.0150.00916.63
7.4.60.0060.01216.63
7.4.50.0120.00016.31
7.4.40.0030.01416.20
7.4.30.0070.01116.65
7.4.00.0060.00915.00
7.3.330.0000.00713.17
7.3.320.0030.00313.26
7.3.310.0020.00516.32
7.3.300.0030.00516.40
7.3.290.0090.00616.28
7.3.280.0090.01016.35
7.3.270.0030.01716.43
7.3.260.0080.01116.41
7.3.250.0110.01116.40
7.3.240.0070.01416.44
7.3.230.0070.01116.62
7.3.210.0110.00816.34
7.3.200.0140.01216.55
7.3.190.0110.00816.48
7.3.180.0090.00816.30
7.3.170.0100.00916.44
7.3.160.0100.01316.57
7.3.120.0070.00714.91
7.2.330.0080.01216.77
7.2.320.0090.00916.63
7.2.310.0060.01216.52
7.2.300.0080.01116.58
7.2.290.0070.01116.81
7.2.00.0000.01519.47
7.1.200.0110.00315.94
7.1.100.0270.00317.86
7.1.70.0000.01017.21
7.1.60.0070.01819.40
7.1.50.0030.01217.02
7.1.00.0070.03722.28
7.0.200.0130.00614.84
7.0.140.0100.09022.21
7.0.120.0070.04721.93
7.0.60.0200.07321.83
7.0.50.0030.08317.83
7.0.40.0070.08019.90
7.0.30.0070.08720.10
7.0.20.0070.05020.26
7.0.10.0200.06320.04
7.0.00.0170.07720.25
5.6.210.0030.07020.62
5.6.200.0100.08018.22
5.6.190.0030.05020.39
5.6.180.0100.04720.63
5.6.170.0070.06020.56
5.6.160.0100.06320.66
5.6.150.0070.05720.33
5.6.140.0030.08320.10
5.6.130.0130.04720.34
5.6.120.0030.09020.40
5.6.110.0070.05720.33
5.6.100.0130.07720.44
5.6.90.0100.06320.44
5.6.80.0130.06719.84
5.6.70.0100.07019.84
5.6.60.0070.05019.74
5.6.50.0200.07319.50
5.6.40.0070.04019.72
5.6.30.0070.05319.46
5.6.20.0030.08319.53
5.6.10.0070.07719.80
5.6.00.0030.09019.75
5.5.350.0070.08020.48
5.5.340.0030.08717.98
5.5.330.0070.04320.19
5.5.320.0070.08720.42
5.5.310.0030.08320.06
5.5.300.0030.08019.93
5.5.290.0100.05020.07
5.5.280.0030.04720.14
5.5.270.0100.08020.00
5.5.260.0130.05720.08
5.5.250.0070.06719.98
5.5.240.0070.07719.28
5.5.230.0070.06319.34
5.5.220.0070.09719.45
5.5.210.0030.08019.45
5.5.200.0030.04719.55
5.5.190.0130.06319.27
5.5.180.0000.05019.48
5.5.160.0100.07319.59
5.5.150.0000.07719.52
5.5.140.0130.08319.55
5.5.130.0030.08319.27
5.5.120.0070.07319.54
5.5.110.0100.06719.50
5.5.100.0030.08019.51
5.5.90.0100.03719.16
5.5.80.0130.07319.39
5.5.70.0030.06719.41
5.5.60.0130.07719.41
5.5.50.0100.04019.35
5.5.40.0000.04719.55
5.5.30.0100.07319.25
5.5.20.0070.04319.25
5.5.10.0130.07719.45
5.5.00.0100.07719.40
5.4.450.0070.07319.08
5.4.440.0030.07719.12
5.4.430.0000.08719.46
5.4.420.0030.06319.40
5.4.410.0030.05719.20
5.4.400.0100.07018.93
5.4.390.0070.08319.18
5.4.380.0100.06019.08
5.4.370.0000.05718.79
5.4.360.0100.07719.18
5.4.350.0070.06719.08
5.4.340.0130.07019.18
5.4.320.0030.05719.10
5.4.310.0070.07318.79
5.4.300.0130.04718.78
5.4.290.0130.06719.13
5.4.280.0070.08019.18
5.4.270.0100.07018.95
5.4.260.0030.07719.07
5.4.250.0030.06319.17
5.4.240.0030.05319.17
5.4.230.0070.03719.11
5.4.220.0070.05719.13
5.4.210.0130.07018.78
5.4.200.0000.05018.92
5.4.190.0130.03318.78
5.4.180.0070.06719.16
5.4.170.0000.08719.07
5.4.160.0100.06718.90
5.4.150.0100.05019.12
5.4.140.0200.05316.31
5.4.130.0030.05016.29
5.4.120.0030.07016.34
5.4.110.0100.04316.34
5.4.100.0070.04016.33
5.4.90.0170.02316.39
5.4.80.0030.05016.38
5.4.70.0030.06316.34
5.4.60.0070.03716.43
5.4.50.0070.07716.43
5.4.40.0000.07016.43
5.4.30.0100.03716.29
5.4.20.0070.08716.26
5.4.10.0070.04316.38
5.4.00.0000.08315.71
5.3.290.0100.07714.73
5.3.280.0030.08014.60
5.3.270.0100.07314.63
5.3.260.0070.08014.58
5.3.250.0100.07314.58
5.3.240.0100.03714.57
5.3.230.0070.06314.61
5.3.220.0100.04014.43
5.3.210.0030.06314.54
5.3.200.0070.04314.56
5.3.190.0030.08014.59
5.3.180.0100.07014.58
5.3.170.0170.03714.62
5.3.160.0070.06314.43
5.3.150.0070.08014.55
5.3.140.0130.06714.50
5.3.130.0000.04314.38
5.3.120.0000.04014.52
5.3.110.0000.05314.68
5.3.100.0200.05314.04
5.3.90.0070.03714.15
5.3.80.0030.03713.99
5.3.70.0100.07313.99
5.3.60.0070.03713.99
5.3.50.0030.04013.93
5.3.40.0030.04713.89
5.3.30.0000.05313.78
5.3.20.0100.05713.55
5.3.10.0000.04713.64
5.3.00.0070.04713.78
5.2.170.0000.07011.35
5.2.160.0070.06011.15
5.2.150.0030.06311.18
5.2.140.0030.03011.04
5.2.130.0100.06011.30
5.2.120.0130.03011.14
5.2.110.0030.06311.09
5.2.100.0070.06011.14
5.2.90.0030.03711.10
5.2.80.0070.05311.15
5.2.70.0030.04011.13
5.2.60.0000.05011.05
5.2.50.0170.05011.05
5.2.40.0000.07011.01
5.2.30.0000.05011.01
5.2.20.0100.04310.97
5.2.10.0000.05010.79
5.2.00.0030.05010.73
5.1.60.0100.04710.04
5.1.50.0000.02710.06
5.1.40.0000.0609.93
5.1.30.0070.05710.54
5.1.20.0000.03010.43
5.1.10.0030.05010.18
5.1.00.0070.04310.09
5.0.50.0000.0378.57
5.0.40.0000.0378.45
5.0.30.0100.0638.19
5.0.20.0030.0478.21
5.0.10.0070.0438.25
5.0.00.0000.0708.37
4.4.90.0030.0177.48
4.4.80.0070.0237.48
4.4.70.0000.0377.48
4.4.60.0030.0377.48
4.4.50.0070.0377.48
4.4.40.0030.0577.48
4.4.30.0000.0377.48
4.4.20.0000.0277.48
4.4.10.0000.0207.48
4.4.00.0030.0277.48
4.3.110.0000.0307.48
4.3.100.0030.0277.48
4.3.90.0000.0207.48
4.3.80.0100.0437.48
4.3.70.0030.0207.48
4.3.60.0030.0137.48
4.3.50.0000.0207.48
4.3.40.0000.0537.48
4.3.30.0070.0337.48
4.3.20.0000.0237.48
4.3.10.0000.0407.48
4.3.00.0000.0307.48

preferences:
49.22 ms | 400 KiB | 5 Q