3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_rows = 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):?> <ul> <?php $j = 0; ?> <?php foreach($_row as $_sub_category): $j++; ?> <li <?php if($i==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.00718.30
8.3.50.0120.00918.19
8.3.40.0150.00018.84
8.3.30.0110.00319.08
8.3.20.0000.00820.38
8.3.10.0080.00023.54
8.3.00.0060.00320.56
8.2.180.0110.01118.41
8.2.170.0120.00922.96
8.2.160.0070.00722.09
8.2.150.0160.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0050.00322.32
8.2.110.0030.00622.30
8.2.100.0080.00417.78
8.2.90.0040.00419.25
8.2.80.0080.00017.97
8.2.70.0070.00417.75
8.2.60.0040.00417.93
8.2.50.0000.01018.07
8.2.40.0060.00319.45
8.2.30.0060.00318.18
8.2.20.0000.00817.70
8.2.10.0000.00919.34
8.2.00.0000.00817.59
8.1.270.0000.00823.92
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0110.00023.72
8.1.230.0070.00419.07
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0030.00517.40
8.1.180.0000.00918.10
8.1.170.0030.00618.50
8.1.160.0040.00421.92
8.1.150.0060.00318.58
8.1.140.0050.00317.48
8.1.130.0000.00717.87
8.1.120.0000.00717.54
8.1.110.0080.00017.47
8.1.100.0000.00717.38
8.1.90.0070.00017.48
8.1.80.0070.00017.50
8.1.70.0000.00717.41
8.1.60.0030.00817.61
8.1.50.0000.00817.50
8.1.40.0000.00717.61
8.1.30.0000.00817.66
8.1.20.0030.00617.65
8.1.10.0030.00517.50
8.1.00.0050.00317.39
8.0.300.0050.00318.77
8.0.290.0020.00517.16
8.0.280.0020.00518.40
8.0.270.0000.00717.16
8.0.260.0000.00716.91
8.0.250.0000.00716.87
8.0.240.0040.00416.89
8.0.230.0030.00316.97
8.0.220.0000.00716.86
8.0.210.0040.00416.82
8.0.200.0070.00016.87
8.0.190.0000.00716.95
8.0.180.0070.00016.89
8.0.170.0040.00416.92
8.0.160.0040.00416.95
8.0.150.0050.00316.76
8.0.140.0030.00316.86
8.0.130.0030.00313.32
8.0.120.0040.00416.85
8.0.110.0030.00616.95
8.0.100.0000.00716.93
8.0.90.0040.00417.04
8.0.80.0110.00716.90
8.0.70.0040.00416.82
8.0.60.0040.00416.88
8.0.50.0000.00817.00
8.0.30.0120.00916.97
8.0.20.0210.00317.44
8.0.10.0000.00816.93
8.0.00.0110.01016.89
7.4.330.0030.00315.03
7.4.320.0030.00316.50
7.4.300.0030.00316.54
7.4.290.0040.00416.46
7.4.280.0080.00016.66
7.4.270.0070.00016.55
7.4.260.0030.00316.66
7.4.250.0000.00716.48
7.4.240.0060.00116.54
7.4.230.0040.00416.44
7.4.220.0160.01116.67
7.4.210.0050.01216.57
7.4.200.0080.00016.54
7.4.190.0040.00416.55
7.4.160.0080.01016.56
7.4.150.0070.01217.40
7.4.140.0050.01417.86
7.4.130.0160.00516.54
7.4.120.0170.00516.65
7.4.110.0120.00616.59
7.4.100.0100.01616.53
7.4.90.0030.01516.63
7.4.80.0100.01316.60
7.4.70.0120.00616.56
7.4.60.0060.01316.54
7.4.50.0020.00216.61
7.4.40.0110.00822.77
7.4.30.0100.01116.56
7.4.00.0000.01714.88
7.3.330.0050.00013.35
7.3.320.0000.00513.26
7.3.310.0030.00316.32
7.3.300.0030.00316.36
7.3.290.0180.00416.53
7.3.280.0090.00916.34
7.3.270.0140.00417.40
7.3.260.0040.01416.52
7.3.250.0110.01116.68
7.3.240.0130.01016.76
7.3.230.0090.01616.39
7.3.210.0090.00916.46
7.3.200.0190.00919.39
7.3.190.0160.01216.52
7.3.180.0100.00716.68
7.3.170.0140.00316.50
7.3.160.0080.00816.29
7.3.120.0030.01315.13
7.3.10.0070.00716.88
7.3.00.0040.01116.79
7.2.330.0120.00616.62
7.2.320.0030.01416.82
7.2.310.0130.01016.39
7.2.300.0090.00916.76
7.2.290.0090.00916.51
7.2.130.0000.01617.09
7.2.120.0100.00316.66
7.2.110.0040.01217.00
7.2.100.0060.00916.91
7.2.90.0060.00616.64
7.2.80.0030.01016.82
7.2.70.0100.00017.14
7.2.60.0060.01017.04
7.2.50.0030.00716.95
7.2.40.0000.01416.92
7.2.30.0100.00617.16
7.2.20.0040.00816.92
7.2.10.0040.01216.96
7.2.00.0040.00918.14
7.1.250.0070.00315.63
7.1.200.0040.00815.89
7.1.100.0040.01117.90
7.1.70.0030.00716.83
7.1.60.0070.01719.29
7.1.50.0030.01317.01
7.1.00.0000.07722.48
7.0.200.0100.00316.56
7.0.140.0070.07022.07
7.0.100.0200.07319.96
7.0.90.0630.07319.86
7.0.80.0030.05319.89
7.0.70.0100.08319.99
7.0.60.0300.08720.05
7.0.50.0500.06320.34
7.0.40.0030.08320.19
7.0.30.0130.04320.04
7.0.20.0000.07720.08
7.0.10.0030.05720.10
7.0.00.0100.07720.07
5.6.280.0030.07320.83
5.6.250.0200.07020.65
5.6.240.0130.07720.68
5.6.230.0070.07720.52
5.6.220.0070.08320.66
5.6.210.0170.04320.70
5.6.200.0100.07721.07
5.6.190.0100.07721.15
5.6.180.0030.08721.04
5.6.170.0170.06020.95
5.6.160.0100.07321.18
5.6.150.0100.08021.03
5.6.140.0130.07020.96
5.6.130.0030.07021.14
5.6.120.0000.09321.12
5.6.110.0170.07321.17
5.6.100.0130.08021.00
5.6.90.0130.04321.05
5.6.80.0070.07720.54
5.6.70.0100.06720.43
5.6.60.0170.08320.40
5.6.50.0100.07720.45
5.6.40.0170.02720.43
5.6.30.0030.04720.45
5.6.20.0030.08720.31
5.6.10.0030.08320.43
5.6.00.0070.07720.30
5.5.380.0130.08020.39
5.5.370.0130.06020.37
5.5.360.0170.06320.37
5.5.350.0030.07720.44
5.5.340.0100.07020.94
5.5.330.0130.08020.75
5.5.320.0070.06320.79
5.5.310.0070.04020.94
5.5.300.0000.05720.90
5.5.290.0030.08320.94
5.5.280.0070.08020.91
5.5.270.0070.07720.93
5.5.260.0000.09320.94
5.5.250.0070.05320.59
5.5.240.0070.07320.19
5.5.230.0100.07020.02
5.5.220.0000.08320.25
5.5.210.0030.05020.25
5.5.200.0000.04320.17
5.5.190.0100.04320.24
5.5.180.0100.07020.24
5.5.160.0130.06720.13
5.5.150.0130.07020.27
5.5.140.0030.07020.28
5.5.130.0170.06020.12
5.5.120.0100.05020.28
5.5.110.0070.08020.28
5.5.100.0000.06720.07
5.5.90.0100.07020.09
5.5.80.0030.04020.11
5.5.70.0100.07320.17
5.5.60.0100.04319.98
5.5.50.0030.05020.04
5.5.40.0100.06720.18
5.5.30.0030.05020.12
5.5.20.0100.07020.16
5.5.10.0100.07320.04
5.5.00.0100.04320.02
5.4.450.0130.07719.14
5.4.440.0070.04319.30
5.4.430.0170.06319.36
5.4.420.0100.07719.30
5.4.410.0030.05719.16
5.4.400.0030.04018.95
5.4.390.0130.06719.02
5.4.380.0070.05018.97
5.4.370.0130.07018.95
5.4.360.0100.08019.21
5.4.350.0030.08019.06
5.4.340.0100.06018.82
5.4.320.0130.07018.98
5.4.310.0030.07318.90
5.4.300.0030.07718.98
5.4.290.0100.07019.09
5.4.280.0130.05719.09
5.4.270.0030.03319.14
5.4.260.0100.07718.97
5.4.250.0100.06719.07
5.4.240.0070.07318.78
5.4.230.0070.07718.97
5.4.220.0130.07319.04
5.4.210.0070.07019.11
5.4.200.0070.04019.02
5.4.190.0130.07018.95
5.4.180.0030.06319.22
5.4.170.0130.06019.02
5.4.160.0030.05718.77
5.4.150.0170.06019.12
5.4.140.0030.05016.36
5.4.130.0100.03716.39
5.4.120.0070.03316.29
5.4.110.0100.06716.23
5.4.100.0070.07016.50
5.4.90.0070.07016.21
5.4.80.0000.04016.34
5.4.70.0030.05016.25
5.4.60.0100.07016.34
5.4.50.0070.07016.36
5.4.40.0100.07016.29
5.4.30.0130.05716.38
5.4.20.0030.03716.38
5.4.10.0170.04716.24
5.4.00.0070.03315.87
5.3.290.0130.07014.64
5.3.280.0030.06014.60
5.3.270.0070.07714.45
5.3.260.0100.06714.49
5.3.250.0030.06314.61
5.3.240.0030.05314.54
5.3.230.0170.02714.56
5.3.220.0130.06714.58
5.3.210.0100.07314.58
5.3.200.0100.07714.45
5.3.190.0100.04014.55
5.3.180.0030.05314.55
5.3.170.0030.07014.59
5.3.160.0170.05014.54
5.3.150.0130.06314.55
5.3.140.0130.06014.45
5.3.130.0000.05014.41
5.3.120.0130.06314.39
5.3.110.0070.07314.57
5.3.100.0030.03713.93
5.3.90.0070.07714.03
5.3.80.0100.04313.91
5.3.70.0070.04314.03
5.3.60.0130.05314.03
5.3.50.0070.04313.93
5.3.40.0000.04313.93
5.3.30.0030.06313.71
5.3.20.0100.06013.57
5.3.10.0030.04013.68
5.3.00.0000.04313.65
5.2.170.0030.06011.50
5.2.160.0000.06011.50
5.2.150.0030.06011.50
5.2.140.0070.06011.50
5.2.130.0030.03311.50
5.2.120.0100.05311.50
5.2.110.0030.06311.50
5.2.100.0030.05311.50
5.2.90.0000.06311.50
5.2.80.0000.07011.50
5.2.70.0030.05711.50
5.2.60.0100.05711.50
5.2.50.0170.03311.50
5.2.40.0100.05011.50
5.2.30.0130.05711.50
5.2.20.0100.05311.50
5.2.10.0000.06711.50
5.2.00.0100.04011.50
5.1.60.0070.05011.50
5.1.50.0070.05711.50
5.1.40.0100.05011.50
5.1.30.0070.06011.50
5.1.20.0070.05711.50
5.1.10.0030.05011.50
5.1.00.0000.06011.50
5.0.50.0100.04011.50
5.0.40.0070.02711.50
5.0.30.0030.05711.50
5.0.20.0000.02711.50
5.0.10.0070.02011.50
5.0.00.0070.05711.50
4.4.90.0000.02711.50
4.4.80.0030.03311.50
4.4.70.0030.03711.50
4.4.60.0070.02311.50
4.4.50.0030.02011.50
4.4.40.0000.04311.50
4.4.30.0000.03711.50
4.4.20.0130.01011.50
4.4.10.0000.03711.50
4.4.00.0000.05711.50
4.3.110.0070.03311.50
4.3.100.0000.02311.50
4.3.90.0030.03311.50
4.3.80.0000.05011.50
4.3.70.0000.03011.50
4.3.60.0030.03311.50
4.3.50.0030.02311.50
4.3.40.0000.02711.50
4.3.30.0030.03311.50
4.3.20.0000.03711.50
4.3.10.0030.03711.50
4.3.00.0000.02711.50

preferences:
47.47 ms | 400 KiB | 5 Q