3v4l.org

run code in 300+ PHP versions simultaneously
Alan Johnson ยท July 12, 2014 Yes, example: <?php $alto = array("10","9.5","9","8.5","8","7.5","7","6.5",); $basso= array("5.5","5","4.5","4","3.5","3","2.5","2","1.5","1",); $sei= "puntimax" * "sufficienza"; ?> <table> <tr> <th>voto</th> <th>Last name</th> </tr> <?php foreach($alto as $value): ?> <tr> <td><?php echo $value ?></td> <td>"uno"</td> </tr> <?php endforeach; ?> </table>

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.0070.01018.31
8.3.60.0100.00318.41
8.3.50.0070.01321.07
8.3.40.0060.00918.77
8.3.30.0080.00818.72
8.3.20.0070.00020.34
8.3.10.0070.00021.64
8.3.00.0070.00022.43
8.2.180.0060.01218.45
8.2.170.0140.00322.96
8.2.160.0070.00720.35
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0030.00617.63
8.2.110.0060.00320.47
8.2.100.0030.00917.62
8.2.90.0000.00719.05
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0040.00417.79
8.2.50.0000.00818.07
8.2.40.0000.00821.13
8.2.30.0070.00019.86
8.2.20.0050.00317.69
8.2.10.0040.00418.18
8.2.00.0000.00718.00
8.1.280.0070.00725.92
8.1.270.0090.00620.20
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00322.01
8.1.230.0000.01117.42
8.1.220.0030.00617.79
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0040.00417.38
8.1.180.0040.00418.10
8.1.170.0040.00418.49
8.1.160.0040.00421.94
8.1.150.0070.00018.83
8.1.140.0040.00417.44
8.1.130.0040.00417.54
8.1.120.0040.00417.42
8.1.110.0000.00717.28
8.1.100.0070.00017.36
8.1.90.0030.00517.29
8.1.80.0000.00817.35
8.1.70.0070.00017.29
8.1.60.0030.00617.52
8.1.50.0050.00317.54
8.1.40.0040.00417.44
8.1.30.0000.00917.71
8.1.20.0040.00417.55
8.1.10.0000.00817.62
8.1.00.0030.00517.50
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0070.00018.31
8.0.270.0040.00417.25
8.0.260.0040.00417.12
8.0.250.0030.00516.91
8.0.240.0000.00717.04
8.0.230.0030.00316.95
8.0.220.0030.00316.89
8.0.210.0080.00016.88
8.0.200.0040.00416.97
8.0.190.0000.00816.86
8.0.180.0100.00016.90
8.0.170.0030.00516.86
8.0.160.0000.00816.92
8.0.150.0040.00416.93
8.0.140.0000.00816.73
8.0.130.0060.00013.29
8.0.120.0060.00316.75
8.0.110.0000.00716.79
8.0.100.0030.00416.69
8.0.90.0000.00816.77
8.0.80.0090.00616.95
8.0.70.0050.00217.00
8.0.60.0030.00516.79
8.0.50.0040.00417.00
8.0.30.0060.01417.06
8.0.20.0100.00917.40
8.0.10.0000.00816.81
8.0.00.0100.01116.78
7.4.330.0050.00015.08
7.4.320.0030.00316.50
7.4.300.0030.00316.60
7.4.290.0000.01016.52
7.4.280.0050.00316.64
7.4.270.0020.00516.58
7.4.260.0040.00416.46
7.4.250.0030.00516.43
7.4.240.0040.00416.50
7.4.230.0050.00316.40
7.4.220.0080.00816.53
7.4.210.0100.01016.37
7.4.200.0040.00416.60
7.4.160.0060.00916.40
7.4.150.0100.00717.40
7.4.140.0140.01117.86
7.4.130.0150.00516.47
7.4.120.0100.00916.42
7.4.110.0140.01016.48
7.4.100.0070.01716.66
7.4.90.0070.01116.68
7.4.80.0190.00519.39
7.4.70.0170.00716.29
7.4.60.0060.01016.52
7.4.50.0030.00616.43
7.4.40.0060.01016.37
7.4.30.0120.00616.37
7.4.00.0100.00714.99
7.3.330.0060.00013.23
7.3.320.0050.00013.12
7.3.310.0000.00716.39
7.3.300.0030.00316.31
7.3.290.0080.00616.29
7.3.280.0060.01016.34
7.3.270.0180.00617.40
7.3.260.0100.00716.48
7.3.250.0090.00916.46
7.3.240.0100.00616.28
7.3.230.0120.01216.39
7.3.210.0100.00716.46
7.3.200.0100.01719.39
7.3.190.0030.01416.41
7.3.180.0030.01316.36
7.3.170.0110.00716.33
7.3.160.0060.01216.44
7.3.10.0030.01016.72
7.3.00.0100.00316.83
7.2.330.0120.00716.68
7.2.320.0120.00916.68
7.2.310.0100.00716.73
7.2.300.0060.01116.50
7.2.290.0100.01016.71
7.2.130.0130.00316.72
7.2.120.0030.01017.00
7.2.110.0030.01017.02
7.2.100.0080.00617.07
7.2.90.0070.01016.84
7.2.80.0060.00917.10
7.2.70.0070.01016.71
7.2.60.0090.00716.93
7.2.50.0060.01017.14
7.2.40.0100.00316.85
7.2.30.0070.00716.96
7.2.20.0090.00616.54
7.2.10.0170.00016.95
7.2.00.0070.00518.05
7.1.250.0040.01115.84
7.1.200.0070.00015.71
7.1.100.0000.01318.27
7.1.70.0000.00817.18
7.1.60.0100.01320.03
7.1.50.0060.00616.72
7.1.00.0030.07722.30
7.0.200.0180.00714.97
7.0.60.0070.06020.01
7.0.50.0100.07017.89
7.0.40.0000.08020.04
7.0.30.0500.04320.28
7.0.20.0230.07020.20
7.0.10.0100.08020.01
7.0.00.0100.08020.12
5.6.280.0000.07720.99
5.6.210.0000.09320.60
5.6.200.0170.05018.22
5.6.190.0200.07720.35
5.6.180.0230.05320.48
5.6.170.0330.07020.52
5.6.160.0030.04020.37
5.6.150.0170.07318.14
5.6.140.0030.04018.22
5.6.130.0130.04318.14
5.6.120.0170.03321.11
5.6.110.0030.04020.89
5.6.100.0030.08721.13
5.6.90.0100.03720.94
5.6.80.0030.06020.30
5.6.70.4300.03720.27
5.5.350.0170.07320.44
5.5.340.0070.04018.01
5.5.330.0130.08020.28
5.5.320.0270.04720.26
5.5.310.0300.07320.30
5.5.300.0200.04717.91
5.5.290.0070.07017.96
5.5.280.0100.06320.84
5.5.270.0030.08320.84
5.5.260.0100.06720.87
5.5.250.0070.05320.61
5.5.240.0070.07320.37
5.4.450.0770.06719.39
5.4.440.0670.06719.51
5.4.430.0770.06019.34
5.4.420.0800.05719.31
5.4.410.0630.06319.43
5.4.400.0700.06319.16
5.4.390.0900.07018.80
5.4.380.1030.05718.99
5.4.370.0830.04719.20
5.4.360.0930.04719.17
5.4.350.0800.05019.02
5.4.340.0870.05718.82
5.4.320.0800.05019.17
5.4.310.0830.04319.01
5.4.300.0670.06018.80
5.4.290.0830.05319.05
5.4.280.0800.05718.97
5.4.270.0900.04718.99
5.4.260.0930.05319.20
5.4.250.0900.04718.97
5.4.240.0800.06718.76
5.4.230.0770.06019.17
5.4.220.0900.05019.17
5.4.210.0770.06019.08
5.4.200.0870.05316.84
5.4.190.0770.05019.05
5.4.180.0900.06319.10
5.4.170.0800.06019.06
5.4.160.0830.04718.85
5.4.150.0670.06018.73
5.4.140.0730.06016.46
5.4.130.0770.04716.45
5.4.120.0830.04316.46
5.4.110.0830.05016.28
5.4.100.0830.07016.38
5.4.90.0730.05716.41
5.4.80.0670.05716.24
5.4.70.0770.05316.23
5.4.60.0200.04316.36
5.4.50.0100.04716.36
5.4.40.0070.05016.39
5.4.30.0030.07016.17
5.4.20.0000.05016.36

preferences:
62.28 ms | 401 KiB | 5 Q