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; } } print_r($_rows[row1]); foreach($_rows as $_row):?> <ul> <?php $j = 0; ?> <?php foreach($_row 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.70.0090.00916.61
8.3.60.0140.00718.68
8.3.50.0260.00421.14
8.3.40.0070.00718.82
8.3.30.0110.00720.08
8.3.20.0040.00420.35
8.3.10.0040.00422.14
8.3.00.0060.00322.39
8.2.180.0140.00716.63
8.2.170.0100.00322.96
8.2.160.0030.01222.29
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0000.00720.75
8.2.110.0070.00322.12
8.2.100.0060.00617.97
8.2.90.0060.00317.75
8.2.80.0050.00317.97
8.2.70.0040.00418.04
8.2.60.0040.00418.28
8.2.50.0080.00018.10
8.2.40.0040.00417.88
8.2.30.0040.00419.47
8.2.20.0000.00817.74
8.2.10.0030.00517.94
8.2.00.0050.00317.84
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.98
8.1.230.0100.00019.14
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0080.00017.35
8.1.180.0030.00518.10
8.1.170.0000.00818.50
8.1.160.0080.00018.88
8.1.150.0040.00418.72
8.1.140.0000.00717.48
8.1.130.0000.00717.87
8.1.120.0040.00417.52
8.1.110.0050.00317.45
8.1.100.0040.00417.50
8.1.90.0040.00417.38
8.1.80.0020.00517.47
8.1.70.0000.00817.40
8.1.60.0000.01017.58
8.1.50.0000.00817.54
8.1.40.0050.00217.51
8.1.30.0000.00717.65
8.1.20.0050.00317.54
8.1.10.0000.00817.47
8.1.00.0040.00417.54
8.0.300.0040.00419.80
8.0.290.0040.00416.63
8.0.280.0000.00718.44
8.0.270.0030.00317.20
8.0.260.0030.00316.85
8.0.250.0030.00317.14
8.0.240.0040.00417.02
8.0.230.0030.00317.02
8.0.220.0030.00316.96
8.0.210.0000.00717.01
8.0.200.0000.00717.15
8.0.190.0000.00716.96
8.0.180.0000.00817.02
8.0.170.0040.00417.05
8.0.160.0040.00416.87
8.0.150.0000.00716.89
8.0.140.0080.00016.85
8.0.130.0030.00313.43
8.0.120.0040.00417.00
8.0.110.0070.00016.91
8.0.100.0040.00416.81
8.0.90.0040.00416.89
8.0.80.0030.01216.94
8.0.70.0030.00516.77
8.0.60.0000.00816.77
8.0.50.0040.00416.82
8.0.30.0140.00817.05
8.0.20.0110.00717.40
8.0.10.0070.00017.05
8.0.00.0140.00617.12
7.4.330.0000.00615.00
7.4.320.0030.00316.63
7.4.300.0000.00616.64
7.4.290.0000.00716.68
7.4.280.0000.00716.63
7.4.270.0030.00316.57
7.4.260.0030.00313.39
7.4.250.0040.00416.50
7.4.240.0050.00316.56
7.4.230.0070.00016.66
7.4.220.0160.00616.73
7.4.210.0070.00816.60
7.4.200.0030.00316.46
7.4.190.0040.00416.70
7.4.160.0100.00716.52
7.4.150.0110.00717.40
7.4.140.0090.00917.86
7.4.130.0110.00716.57
7.4.120.0150.00316.62
7.4.110.0040.01416.69
7.4.100.0090.00916.49
7.4.90.0090.00916.63
7.4.80.0110.01919.39
7.4.70.0070.01016.68
7.4.60.0130.01316.45
7.4.50.0000.00916.58
7.4.40.0040.01122.77
7.4.30.0080.01216.60
7.4.00.0100.00715.05
7.3.330.0050.00013.32
7.3.320.0000.00513.37
7.3.310.0040.00416.38
7.3.300.0030.00316.26
7.3.290.0070.00716.45
7.3.280.0120.00516.39
7.3.270.0090.00917.40
7.3.260.0120.00616.39
7.3.250.0130.00716.46
7.3.240.0060.00916.43
7.3.230.0070.01016.61
7.3.210.0160.00816.39
7.3.200.0070.01119.39
7.3.190.0070.01016.40
7.3.180.0060.01216.58
7.3.170.0080.00916.41
7.3.160.0090.00916.43
7.3.120.0070.01014.61
7.3.10.0070.00716.61
7.3.00.0000.01316.64
7.2.330.0120.00616.79
7.2.320.0120.01216.41
7.2.310.0110.00816.91
7.2.300.0100.01416.74
7.2.290.0080.00816.52
7.2.130.0070.01016.84
7.2.120.0040.01116.74
7.2.110.0090.00616.83
7.2.100.0070.00416.95
7.2.90.0070.00716.68
7.2.80.0080.00316.83
7.2.70.0070.01017.06
7.2.60.0070.00916.88
7.2.50.0040.01117.00
7.2.40.0070.00316.98
7.2.30.0060.00917.04
7.2.20.0060.01016.80
7.2.10.0070.00716.97
7.2.00.0080.00718.04
7.1.250.0000.00915.79
7.1.200.0280.00715.56
7.1.100.0000.01018.03
7.1.70.0030.00517.17
7.1.60.0060.01919.32
7.1.50.0080.00817.14
7.1.00.0000.03722.32
7.0.200.0000.01016.85
7.0.140.0000.07722.04
7.0.100.0070.03720.19
7.0.90.0000.04719.93
7.0.80.0200.04019.94
7.0.70.0200.08019.87
7.0.60.0030.07019.98
7.0.50.0130.07320.31
7.0.40.0100.07720.05
7.0.30.0170.08020.14
7.0.20.0030.05720.05
7.0.10.0100.07019.99
7.0.00.0170.04319.95
5.6.280.0030.07320.92
5.6.250.0030.04320.64
5.6.240.0030.04020.74
5.6.230.0070.04020.70
5.6.220.0030.09020.68
5.6.210.0070.04020.51
5.6.200.0100.07321.04
5.6.190.0030.04021.14
5.6.180.0030.04321.13
5.6.170.0170.07020.97
5.6.160.0030.07021.06
5.6.150.0000.05720.95
5.6.140.0100.07021.07
5.6.130.0100.03721.03
5.6.120.0130.04021.18
5.6.110.0030.06720.95
5.6.100.0100.07721.09
5.6.90.0070.07321.07
5.6.80.0000.05020.40
5.6.70.0100.05720.39
5.6.60.0100.03320.49
5.6.50.0130.07720.35
5.6.40.0070.03720.38
5.6.30.0170.06020.38
5.6.20.0030.06020.48
5.6.10.0070.03720.28
5.6.00.0130.07320.39
5.5.380.0030.03720.53
5.5.370.0070.04320.46
5.5.360.0100.07720.35
5.5.350.0130.03720.44
5.5.340.0000.06720.92
5.5.330.0070.05020.94
5.5.320.0070.06320.84
5.5.310.0130.04720.89
5.5.300.0070.04720.94
5.5.290.0170.07720.93
5.5.280.0070.07320.79
5.5.270.0070.04020.92
5.5.260.0200.07320.81
5.5.250.0130.07320.54
5.5.240.0030.07720.16
5.5.230.0130.07320.30
5.5.220.0000.08020.18
5.5.210.0030.09020.28
5.5.200.0070.08320.28
5.5.190.0000.05020.29
5.5.180.0070.04720.00
5.5.160.0000.04020.28
5.5.150.0030.04720.19
5.5.140.0030.05320.25
5.5.130.0070.07720.20
5.5.120.0130.07020.25
5.5.110.0030.04320.27
5.5.100.0030.04720.09
5.5.90.0070.07719.96
5.5.80.0030.08720.05
5.5.70.0030.08320.07
5.5.60.0070.06020.13
5.5.50.0100.07320.11
5.5.40.0000.04020.16
5.5.30.0000.04320.12
5.5.20.0130.03319.94
5.5.10.0130.06020.05
5.5.00.0030.08320.04
5.4.450.0030.04719.37
5.4.440.0070.04019.17
5.4.430.0070.06319.32
5.4.420.0100.07719.45
5.4.410.0030.04719.41
5.4.400.0030.08019.14
5.4.390.0070.07319.16
5.4.380.0070.04019.14
5.4.370.0030.08019.03
5.4.360.0030.05719.23
5.4.350.0130.03018.92
5.4.340.0170.05318.87
5.4.320.0070.07019.05
5.4.310.0100.05018.91
5.4.300.0070.06719.14
5.4.290.0070.07019.00
5.4.280.0030.03719.02
5.4.270.0070.05318.84
5.4.260.0070.05019.25
5.4.250.0000.04019.04
5.4.240.0100.03019.08
5.4.230.0070.07719.08
5.4.220.0070.03719.04
5.4.210.0000.07719.17
5.4.200.0170.06319.17
5.4.190.0100.04019.11
5.4.180.0030.06719.22
5.4.170.0000.08018.93
5.4.160.0170.07319.20
5.4.150.0000.06319.10
5.4.140.0100.07016.41
5.4.130.0000.04716.44
5.4.120.0100.02716.40
5.4.110.0070.04016.42
5.4.100.0070.06716.30
5.4.90.0030.07316.47
5.4.80.0070.07016.48
5.4.70.0070.04016.41
5.4.60.0070.07016.33
5.4.50.0070.07316.39
5.4.40.0030.06716.51
5.4.30.0070.04016.39
5.4.20.0070.06716.25
5.4.10.0000.06716.36
5.4.00.0170.06015.86
5.3.290.0000.04714.74
5.3.280.0070.06714.67
5.3.270.0070.04014.76
5.3.260.0100.06014.54
5.3.250.0030.07714.73
5.3.240.0130.06714.63
5.3.230.0100.07314.58
5.3.220.0030.05014.55
5.3.210.0030.07714.63
5.3.200.0030.03714.69
5.3.190.0030.04714.57
5.3.180.0030.03714.59
5.3.170.0070.07314.63
5.3.160.0100.06014.70
5.3.150.0100.07314.50
5.3.140.0130.07014.56
5.3.130.0030.05014.62
5.3.120.0030.04014.49
5.3.110.0030.07714.57
5.3.100.0070.07314.04
5.3.90.0070.05014.09
5.3.80.0000.04014.01
5.3.70.0070.06014.16
5.3.60.0030.03314.16
5.3.50.0030.06713.89
5.3.40.0000.06714.09
5.3.30.0030.03713.98
5.3.20.0000.03713.80
5.3.10.0030.06013.78
5.3.00.0000.03713.77
5.2.170.0070.05312.09
5.2.160.0030.06312.09
5.2.150.0100.05312.09
5.2.140.0000.04312.09
5.2.130.0030.04312.09
5.2.120.0070.03712.09
5.2.110.0030.06312.09
5.2.100.0030.06012.09
5.2.90.0070.04712.09
5.2.80.0070.06012.09
5.2.70.0100.05312.09
5.2.60.0000.06312.09
5.2.50.0000.06712.09
5.2.40.0000.05712.09
5.2.30.0070.03012.09
5.2.20.0100.05312.09
5.2.10.0030.04712.09
5.2.00.0070.02312.09
5.1.60.0030.05312.09
5.1.50.0030.02712.09
5.1.40.0100.05012.09
5.1.30.0000.06712.09
5.1.20.0030.06012.09
5.1.10.0030.04312.09
5.1.00.0000.05712.09
5.0.50.0070.03312.09
5.0.40.0030.02012.09
5.0.30.0030.03012.09
5.0.20.0030.02012.09
5.0.10.0030.02712.09
5.0.00.0100.03012.09
4.4.90.0030.03012.09
4.4.80.0030.03712.09
4.4.70.0000.02012.09
4.4.60.0170.02012.09
4.4.50.0030.03312.09
4.4.40.0000.03712.09
4.4.30.0030.01312.09
4.4.20.0070.01312.09
4.4.10.0070.03312.09
4.4.00.0000.04712.09
4.3.110.0030.03012.09
4.3.100.0070.02312.09
4.3.90.0000.02012.09
4.3.80.0030.04012.09
4.3.70.0000.03312.09
4.3.60.0030.02712.09
4.3.50.0030.03012.09
4.3.40.0000.02712.09
4.3.30.0070.03012.09
4.3.20.0000.03012.09
4.3.10.0030.03012.09
4.3.00.0000.01712.09

preferences:
44.53 ms | 401 KiB | 5 Q