3v4l.org

run code in 300+ PHP versions simultaneously
<html code ------------------> <?php if (isset($_POST["submit"]) ){ header("Content-Disposition: attachment; filename=\"Report.xls\""); header("Content-Type: application/vnd.ms-excel;"); header("Pragma: no-cache"); header("Expires: 0"); $out = fopen("php://output", "w"); foreach ($tabledata as $data) { //print_r($data); fputcsv($out, $data,"\t"); } fclose($out); } ?> <form name="form_name" method="post" action=""><input type="submit" value="Download Excel" name ="submit" /></form

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.0040.01118.55
8.3.50.0130.00822.00
8.3.40.0140.00318.54
8.3.30.0110.00319.13
8.3.20.0040.00420.16
8.3.10.0060.00323.53
8.3.00.0090.00019.26
8.2.180.0030.01018.18
8.2.170.0070.00722.96
8.2.160.0100.00320.52
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0020.00522.29
8.2.110.0080.00420.57
8.2.100.0000.01217.91
8.2.90.0030.00517.84
8.2.80.0000.00817.97
8.2.70.0110.00017.63
8.2.60.0050.00317.91
8.2.50.0000.00818.07
8.2.40.0030.00619.95
8.2.30.0000.00718.07
8.2.20.0040.00417.61
8.2.10.0070.00018.06
8.2.00.0070.00317.76
8.1.280.0130.00725.92
8.1.270.0040.00422.05
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.59
8.1.230.0030.00921.04
8.1.220.0000.00817.74
8.1.210.0080.00018.85
8.1.200.0030.00617.35
8.1.190.0090.00017.53
8.1.180.0000.00918.10
8.1.170.0080.00320.27
8.1.160.0050.00222.03
8.1.150.0030.00618.59
8.1.140.0090.00017.48
8.1.130.0030.00317.63
8.1.120.0040.00417.41
8.1.110.0030.00617.37
8.1.100.0000.01017.32
8.1.90.0050.00317.30
8.1.80.0000.00717.48
8.1.70.0070.00017.38
8.1.60.0030.00517.53
8.1.50.0080.00017.34
8.1.40.0020.00517.47
8.1.30.0030.00517.57
8.1.20.0080.00017.43
8.1.10.0000.00817.49
8.1.00.0000.00817.40
8.0.300.0050.00219.92
8.0.290.0070.00016.93
8.0.280.0000.00718.40
8.0.270.0030.00317.13
8.0.260.0060.00017.21
8.0.250.0000.00716.95
8.0.240.0000.00816.81
8.0.230.0030.00616.98
8.0.220.0070.00016.76
8.0.210.0000.00716.80
8.0.200.0030.00316.78
8.0.190.0040.00416.88
8.0.180.0030.00416.76
8.0.170.0000.00716.77
8.0.160.0040.00416.85
8.0.150.0030.00516.88
8.0.140.0040.00416.79
8.0.130.0030.00313.21
8.0.120.0000.00816.70
8.0.110.0000.00716.73
8.0.100.0080.00016.76
8.0.90.0040.00416.88
8.0.80.0070.00716.84
8.0.70.0040.00416.75
8.0.60.0040.00416.68
8.0.50.0040.00416.79
8.0.30.0100.01017.11
8.0.20.0090.00817.40
8.0.10.0000.00816.92
8.0.00.0030.01616.77
7.4.330.0060.00015.00
7.4.320.0040.00416.40
7.4.300.0030.00316.45
7.4.290.0030.00616.53
7.4.280.0050.00316.56
7.4.270.0070.00016.47
7.4.260.0030.00616.55
7.4.250.0000.00816.51
7.4.240.0060.00216.53
7.4.230.0000.00816.37
7.4.220.0070.01016.32
7.4.210.0080.00916.55
7.4.200.0070.00016.35
7.4.190.0050.00216.32
7.4.160.0040.01116.34
7.4.150.0150.00617.40
7.4.140.0100.00917.86
7.4.130.0090.00716.53
7.4.120.0070.01016.52
7.4.110.0130.01016.42
7.4.100.0100.00716.59
7.4.90.0110.00616.53
7.4.80.0140.00319.39
7.4.70.0030.01416.30
7.4.60.0160.00316.38
7.4.50.0000.00516.54
7.4.40.0090.00622.77
7.4.30.0040.01116.50
7.4.00.0090.00614.92
7.3.330.0030.00313.01
7.3.320.0000.00613.05
7.3.310.0030.00516.35
7.3.300.0000.00716.23
7.3.290.0070.00716.33
7.3.280.0080.01016.21
7.3.270.0180.00717.40
7.3.260.0190.00016.31
7.3.250.0100.00616.42
7.3.240.0090.01216.17
7.3.230.0100.00716.39
7.3.210.0080.00816.42
7.3.200.0060.01619.39
7.3.190.0120.00916.18
7.3.180.0060.00916.30
7.3.170.0100.00616.27
7.3.160.0050.01316.12
7.3.120.0070.01014.73
7.3.10.0100.00316.48
7.3.00.0070.00716.59
7.2.330.0060.01116.71
7.2.320.0110.00816.34
7.2.310.0040.01816.59
7.2.300.0100.01016.61
7.2.290.0070.01016.55
7.2.130.0000.01216.87
7.2.120.0000.01416.81
7.2.110.0120.00316.55
7.2.100.0040.01116.54
7.2.90.0070.00716.89
7.2.80.0140.00016.83
7.2.70.0030.01316.71
7.2.60.0030.01316.83
7.2.50.0120.00416.77
7.2.40.0050.00516.74
7.2.30.0080.00816.80
7.2.20.0060.00916.73
7.2.10.0090.00616.46
7.2.00.0040.00918.21
7.1.250.0100.00315.63
7.1.200.0090.00515.14
7.1.100.0000.01117.80
7.1.70.0000.01116.70
7.1.60.0090.01519.46
7.1.50.0040.01216.62
7.1.00.0030.07722.46
7.0.200.0090.00314.68
7.0.140.0030.07322.13
7.0.60.0030.08020.04
7.0.50.0100.05317.89
7.0.40.0170.04720.27
7.0.30.0300.07320.17
7.0.20.0230.05720.33
7.0.10.0070.06020.11
7.0.00.0100.07720.01
5.6.280.0170.06021.07
5.6.210.0130.07720.53
5.6.200.0100.08318.12
5.6.190.0100.08720.60
5.6.180.0130.04720.56
5.6.170.0330.08720.37
5.6.160.0130.04320.66
5.6.150.0070.04718.09
5.6.140.0030.04718.14
5.6.130.0070.08018.20
5.6.120.0130.08021.11
5.6.110.0070.04320.99
5.6.100.0170.07321.04
5.6.90.0130.07320.95
5.6.80.0030.07020.50
5.6.70.4530.03320.50
5.5.350.0070.07020.35
5.5.340.0030.06018.02
5.5.330.0100.09020.06
5.5.320.0000.05320.29
5.5.310.0200.04020.17
5.5.300.0070.03718.02
5.5.290.0100.06017.98
5.5.280.0070.05320.88
5.5.270.0000.06320.68
5.5.260.0170.06320.87
5.5.250.0030.09320.58
5.5.240.0270.06720.18
5.4.450.0370.06319.20
5.4.440.0270.06319.56
5.4.430.0270.03719.57
5.4.420.0230.06019.41
5.4.410.0200.06319.44
5.4.400.0230.06018.88
5.4.390.0230.03718.92
5.4.380.0330.06718.79
5.4.370.0270.04019.24
5.4.360.0230.04319.13
5.4.350.0130.04718.88
5.4.340.0270.06318.88
5.4.320.0200.03718.89
5.4.310.0270.03319.13
5.4.300.0270.03719.10
5.4.290.0300.03019.03
5.4.280.0270.07319.07
5.4.270.0230.05318.96
5.4.260.0270.03319.12
5.4.250.0300.07319.08
5.4.240.0300.04719.05
5.4.230.0300.03719.07
5.4.220.0270.03719.23
5.4.210.0230.05018.90
5.4.200.0270.05319.12
5.4.190.0330.06718.79
5.4.180.0170.04318.91
5.4.170.0230.07719.24
5.4.160.0270.07318.89
5.4.150.0130.05719.10
5.4.140.0230.04316.16
5.4.130.0270.04716.27
5.4.120.0300.06316.54
5.4.110.0230.03316.38
5.4.100.0270.06716.45
5.4.90.0170.07316.20
5.4.80.0230.05716.37
5.4.70.0230.04716.39
5.4.60.0300.06316.20
5.4.50.0370.04316.36
5.4.40.0300.06716.36
5.4.30.0230.06716.21
5.4.20.0230.03316.35
5.4.10.0230.05716.45
5.4.00.0300.03715.60
5.3.290.0200.03714.69
5.3.280.0270.03714.44
5.3.270.0370.04014.44
5.3.260.0200.04714.44
5.3.250.0230.03714.46
5.3.240.0200.06314.45
5.3.230.0200.06014.43
5.3.220.0230.06314.46
5.3.210.0200.04014.40
5.3.200.0300.07014.40
5.3.190.0270.05014.44
5.3.180.0370.06314.46
5.3.170.0370.06314.50
5.3.160.0200.05014.65
5.3.150.0330.07014.49
5.3.140.0300.07014.49
5.3.130.0270.07014.38
5.3.120.0270.07314.42
5.3.110.0200.04714.49
5.3.100.0270.04713.89
5.3.90.0300.04313.85
5.3.80.0270.06014.04
5.3.70.0370.06313.93
5.3.60.0300.06713.90
5.3.50.0270.07014.03
5.3.40.0230.05013.92
5.3.30.0300.06713.85
5.3.20.0230.05313.66
5.3.10.0270.04313.50
5.3.00.0400.05713.43
5.2.170.0230.06011.43
5.2.160.0330.04311.43
5.2.150.0200.03311.43
5.2.140.0230.06011.43
5.2.130.0270.06011.43
5.2.120.0330.05311.43
5.2.110.0230.03311.43
5.2.100.0300.05311.43
5.2.90.0170.03311.43
5.2.80.0170.03311.43
5.2.70.0200.05311.43
5.2.60.0200.06011.43
5.2.50.0200.04311.43
5.2.40.0170.03711.43
5.2.30.0130.03711.43
5.2.20.0170.03711.43
5.2.10.0270.03711.43
5.2.00.0200.03311.43
5.1.60.0200.05011.43
5.1.50.0270.02711.43
5.1.40.0200.04711.43
5.1.30.0170.04311.43
5.1.20.0230.04011.43
5.1.10.0200.02711.43
5.1.00.0100.03311.43
5.0.50.0070.02311.43
5.0.40.0030.02711.43
5.0.30.0070.06311.43
5.0.20.0170.01011.43
5.0.10.0070.02011.43
5.0.00.0100.06711.43
4.4.90.0130.01311.43
4.4.80.0100.01711.43
4.4.70.0130.03011.43
4.4.60.0170.02311.43
4.4.50.0130.03011.43
4.4.40.0100.05011.43
4.4.30.0100.02011.43
4.4.20.0100.02311.43
4.4.10.0100.01011.43
4.4.00.0100.02311.43
4.3.110.0100.03311.43
4.3.100.0070.02311.43
4.3.90.0030.02311.43
4.3.80.0100.04711.43
4.3.70.0130.01711.43
4.3.60.0070.04011.43
4.3.50.0100.03311.43
4.3.40.0100.04011.43
4.3.30.0100.03311.43
4.3.20.0070.03311.43
4.3.10.0070.03311.43
4.3.00.0030.02711.43

preferences:
57.34 ms | 401 KiB | 5 Q