3v4l.org

run code in 300+ PHP versions simultaneously
Erstens:<br /> <?php $csvOut = array( array('eins', 'bla', 'blubb'), array('zwei', 'bla', 'blubb'), ); $f = fopen('php://output', 'w+'); if ($f) { for ($cnt = 0; $cnt < count($csvOut); $cnt++) { fputcsv($f, $csvOut[$cnt], ';'); echo '<br />'; } fclose($f); } else { $error[] = "Report-Datei ".$csvPath." konnte nicht geschrieben werden."; } ?> Zweitens:<br /> <?php $csvOut = array( array('eins', 'bla', 'blubb'), array('zwei', 'bla', 'blubb'), ); $f = fopen('php://output', 'w+'); if ($f) { foreach($csvOut as $line) { fputcsv($f, $line, ';'); echo '<br />'; } fclose($f); } else { $error[] = "Report-Datei ".$csvPath." konnte nicht geschrieben werden."; } ?>

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.0120.00318.34
8.3.50.0110.00822.92
8.3.40.0140.00718.84
8.3.30.0060.00818.91
8.3.20.0040.00420.21
8.3.10.0080.00023.61
8.3.00.0000.00819.26
8.2.180.0160.00316.47
8.2.170.0090.00622.96
8.2.160.0030.01020.39
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00021.07
8.2.110.0030.00619.39
8.2.100.0080.00417.78
8.2.90.0080.00019.39
8.2.80.0000.00917.97
8.2.70.0060.00317.75
8.2.60.0000.00817.80
8.2.50.0050.00518.07
8.2.40.0000.00819.88
8.2.30.0030.00518.12
8.2.20.0030.00517.76
8.2.10.0050.00318.18
8.2.00.0090.00017.62
8.1.280.0110.00425.92
8.1.270.0060.00323.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0000.01019.05
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0050.00517.35
8.1.190.0030.00617.00
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0000.00722.01
8.1.150.0040.00418.80
8.1.140.0040.00417.35
8.1.130.0000.00717.82
8.1.120.0040.00417.36
8.1.110.0040.00417.46
8.1.100.0000.00817.52
8.1.90.0040.00417.50
8.1.80.0030.00417.36
8.1.70.0030.00317.45
8.1.60.0000.00917.53
8.1.50.0050.00317.42
8.1.40.0040.00417.53
8.1.30.0000.00817.63
8.1.20.0040.00417.55
8.1.10.0040.00417.47
8.1.00.0040.00417.49
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.41
8.0.270.0040.00416.93
8.0.260.0060.00017.41
8.0.250.0040.00416.96
8.0.240.0070.00017.06
8.0.230.0000.00816.99
8.0.220.0030.00516.85
8.0.210.0000.00716.96
8.0.200.0030.00316.88
8.0.190.0050.00317.02
8.0.180.0030.00516.95
8.0.170.0040.00416.88
8.0.160.0000.00716.87
8.0.150.0030.00316.80
8.0.140.0050.00316.95
8.0.130.0030.00313.43
8.0.120.0040.00416.93
8.0.110.0000.00816.85
8.0.100.0050.00516.99
8.0.90.0040.00416.93
8.0.80.0060.01016.90
8.0.70.0030.00316.86
8.0.60.0030.00516.94
8.0.50.0040.00416.99
8.0.30.0170.00716.98
8.0.20.0110.00917.40
8.0.10.0040.00416.84
8.0.00.0050.01316.90
7.4.330.0000.00515.03
7.4.320.0060.00016.55
7.4.300.0030.00316.43
7.4.290.0030.00316.52
7.4.280.0040.00416.63
7.4.270.0070.00016.64
7.4.260.0000.00716.58
7.4.250.0000.00816.57
7.4.240.0050.00316.43
7.4.230.0020.00516.61
7.4.220.0120.00616.50
7.4.210.0120.00916.47
7.4.200.0000.00716.49
7.4.160.0130.00316.56
7.4.150.0180.00017.40
7.4.140.0090.00917.86
7.4.130.0070.01016.51
7.4.120.0080.00816.42
7.4.110.0060.01116.57
7.4.100.0030.01316.53
7.4.90.0070.01016.43
7.4.80.0130.00319.39
7.4.70.0070.01416.40
7.4.60.0080.00816.55
7.4.50.0050.00016.49
7.4.40.0080.00816.51
7.4.30.0100.00716.64
7.4.00.0070.01014.75
7.3.330.0050.00213.18
7.3.320.0050.00013.23
7.3.310.0030.00316.36
7.3.300.0000.00716.28
7.3.290.0030.01316.35
7.3.280.0070.00916.33
7.3.270.0130.00617.40
7.3.260.0140.00416.30
7.3.250.0070.00816.43
7.3.240.0030.01416.34
7.3.230.0000.01616.70
7.3.210.0110.00616.44
7.3.200.0060.01019.39
7.3.190.0040.01316.23
7.3.180.0080.00816.34
7.3.170.0090.00916.65
7.3.160.0130.00716.58
7.3.10.0060.00616.73
7.3.00.0060.00616.73
7.2.330.0060.01216.67
7.2.320.0060.01616.75
7.2.310.0060.01116.62
7.2.300.0040.01216.76
7.2.290.0110.01116.52
7.2.130.0060.00916.61
7.2.120.0070.01116.85
7.2.110.0050.00516.93
7.2.100.0130.00316.99
7.2.90.0090.00617.08
7.2.80.0030.00716.80
7.2.70.0120.00417.14
7.2.60.0000.01317.13
7.2.50.0040.01116.79
7.2.40.0040.01116.80
7.2.30.0030.01217.01
7.2.20.0030.01016.89
7.2.10.0120.00316.61
7.2.00.0080.00816.80
7.1.250.0040.01115.94
7.1.200.0000.00915.79
7.1.70.0060.00917.28
7.1.60.0090.01319.40
7.1.50.0070.01417.03
7.1.00.0070.07322.51
7.0.200.0050.00516.68
7.0.140.0030.07022.00
7.0.60.0030.07319.95
7.0.50.0030.04017.80
7.0.40.0070.06720.25
7.0.30.0200.06020.11
7.0.20.0270.07720.21
7.0.10.0070.07720.16
7.0.00.0030.04319.99
5.6.210.0070.04320.68
5.6.200.0130.08018.07
5.6.190.0070.05320.45
5.6.180.0530.06720.27
5.6.170.0370.07720.44
5.6.160.0070.05720.48
5.6.150.0000.04318.27
5.6.140.0100.07318.14
5.6.130.0100.07318.11
5.6.120.0100.05321.06
5.6.110.0070.04320.89
5.6.100.0100.03720.98
5.6.90.0070.07721.12
5.6.80.0130.05020.51
5.5.350.0300.07720.39
5.5.340.0130.05017.88
5.5.330.0030.05020.42
5.5.320.0300.04320.29
5.5.310.0170.05720.25
5.5.300.0130.07717.95
5.5.290.0030.04317.97
5.5.280.0070.03720.89
5.5.270.0030.09020.75
5.5.260.0030.05320.75
5.5.250.0100.03720.47
5.5.240.0100.07020.27
5.4.450.0570.05719.41
5.4.440.0730.04319.37
5.4.430.0630.05719.41
5.4.420.0730.05319.56
5.4.410.0070.05318.70
5.4.400.0430.07718.50
5.4.390.0200.06318.56
5.4.380.0070.06018.66
5.4.370.0130.03718.68
5.4.360.0100.03318.71
5.4.350.0100.05111.98
5.4.340.0120.05311.98
5.4.320.0060.03612.46
5.4.310.0110.03312.46
5.4.300.0050.03712.46
5.4.290.0060.03912.46
5.4.280.0070.03512.36
5.4.270.0080.04412.36
5.4.260.0080.03612.36
5.4.250.0070.03612.36
5.4.240.0100.03612.36
5.4.230.0050.03712.35
5.4.220.0050.03612.35
5.4.210.0100.03312.35
5.4.200.0060.03712.35
5.4.190.0070.03412.34
5.4.180.0050.04412.35
5.4.170.0080.04812.36
5.4.160.0060.03612.36
5.4.150.0090.04112.35
5.4.140.0100.03512.03
5.4.130.0090.03912.02
5.4.120.0080.03211.98
5.4.110.0090.04011.97
5.4.100.0110.03011.98
5.4.90.0080.04311.98
5.4.80.0050.03811.98
5.4.70.0050.03611.97
5.4.60.0090.03411.97
5.4.50.0030.03811.97
5.4.40.0050.03711.96
5.4.30.0030.03811.96
5.4.20.0090.03911.96
5.4.10.0040.03711.96
5.4.00.0050.03711.45
5.3.290.0080.03712.80
5.3.280.0100.03312.71
5.3.270.0050.03912.72
5.3.260.0080.04412.72
5.3.250.0060.03712.72
5.3.240.0110.03912.72
5.3.230.0080.04112.71
5.3.220.0060.03612.68
5.3.210.0110.04012.68
5.3.200.0070.03612.68
5.3.190.0070.04112.68
5.3.180.0070.03612.67
5.3.170.0020.04112.66
5.3.160.0110.04312.67
5.3.150.0080.03912.67
5.3.140.0090.03812.66
5.3.130.0090.03712.66
5.3.120.0070.03712.66
5.3.110.0030.04212.65
5.3.100.0070.03512.12
5.3.90.0060.03612.08
5.3.80.0070.03512.07
5.3.70.0050.03712.08
5.3.60.0080.03512.06
5.3.50.0080.03512.00
5.3.40.0080.03412.00
5.3.30.0050.03611.95
5.3.20.0050.03611.74
5.3.10.0060.03411.70
5.3.00.0050.03711.69
5.2.170.0060.0329.20
5.2.160.0080.0289.19
5.2.150.0050.0299.20
5.2.140.0040.0399.19
5.2.130.0030.0309.15
5.2.120.0030.0299.15
5.2.110.0090.0279.16
5.2.100.0030.0299.16
5.2.90.0080.0339.16
5.2.80.0060.0309.15
5.2.70.0070.0289.15
5.2.60.0070.0279.10
5.2.50.0070.0289.07
5.2.40.0090.0299.05
5.2.30.0050.0379.02
5.2.20.0080.0379.01
5.2.10.0060.0258.93
5.2.00.0040.0308.79
5.1.60.0050.0278.07
5.1.50.0040.0258.07
5.1.40.0040.0298.06
5.1.30.0070.0268.40
5.1.20.0030.0278.43
5.1.10.0060.0248.15
5.1.00.0050.0248.15
5.0.50.0040.0196.63
5.0.40.0020.0216.50
5.0.30.0060.0276.31
5.0.20.0060.0176.28
5.0.10.0020.0276.26
5.0.00.0090.0336.25
4.4.90.0030.0184.78
4.4.80.0050.0174.75
4.4.70.0040.0144.75
4.4.60.0030.0144.75
4.4.50.0020.0164.77
4.4.40.0030.0274.71
4.4.30.0020.0164.76
4.4.20.0050.0134.84
4.4.10.0040.0214.85
4.4.00.0020.0404.76
4.3.110.0040.0154.66
4.3.100.0030.0164.67
4.3.90.0040.0144.63
4.3.80.0000.0264.58
4.3.70.0020.0154.63
4.3.60.0010.0164.63
4.3.50.0020.0164.63
4.3.40.0040.0234.54
4.3.30.0020.0163.30
4.3.20.0010.0183.27
4.3.10.0010.0163.24
4.3.00.0130.0177.55

preferences:
39.08 ms | 401 KiB | 5 Q