3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array ( array('aaa', 'bbb', 'ccc', 'dddd'), array('123', '456', '789'), array('"aaa"', '"bbb"') ); $fp = fopen('file.csv', 'w'); foreach ($list as $fields) { fputcsv($fp, $fields); } fclose($fp);

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.0180.00416.63
8.3.60.0110.01118.55
8.3.50.0160.00522.08
8.3.40.0110.00418.76
8.3.30.0000.01418.98
8.3.20.0040.00420.30
8.3.10.0030.00621.61
8.3.00.0080.00019.19
8.2.180.0110.01116.75
8.2.170.0140.00322.96
8.2.160.0070.00722.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0070.00019.69
8.2.110.0060.00621.03
8.2.100.0120.00017.84
8.2.90.0040.00617.73
8.2.80.0160.00318.32
8.2.70.0150.00317.44
8.2.60.0140.00317.71
8.2.50.0200.00217.71
8.2.40.0130.01018.66
8.2.30.0090.01117.69
8.2.20.0140.00417.56
8.2.10.0140.00417.92
8.2.00.0120.00617.84
8.1.280.0120.00625.92
8.1.270.0080.00018.92
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0040.00419.21
8.1.230.0000.01120.95
8.1.220.0110.00617.43
8.1.210.0090.01118.00
8.1.200.0070.00417.35
8.1.190.0140.00417.13
8.1.180.0140.00617.55
8.1.170.0120.00517.78
8.1.160.0160.00117.95
8.1.150.0150.00217.92
8.1.140.0170.00017.21
8.1.130.0130.00617.47
8.1.120.0120.00417.35
8.1.110.0100.00717.24
8.1.100.0090.00917.36
8.1.90.0130.00417.35
8.1.80.0140.00317.19
8.1.70.0120.00517.27
8.1.60.0130.00517.58
8.1.50.0150.00217.42
8.1.40.0130.00617.33
8.1.30.0150.00317.46
8.1.20.0150.00317.64
8.1.10.0090.00817.40
8.1.00.0150.00317.21
8.0.300.0130.00618.26
8.0.290.0130.00416.80
8.0.280.0150.00417.45
8.0.270.0080.00916.87
8.0.260.0200.00516.82
8.0.250.0130.00717.00
8.0.240.0130.00316.80
8.0.230.0130.00616.96
8.0.220.0100.00716.76
8.0.210.0130.00516.76
8.0.200.0140.00416.79
8.0.190.0180.00016.79
8.0.180.0160.00116.87
8.0.170.0120.00616.80
8.0.160.0120.00616.90
8.0.150.0140.00316.85
8.0.140.0140.00316.78
8.0.130.0140.00315.19
8.0.120.0130.00616.84
8.0.110.0160.00216.89
8.0.100.0150.00316.89
8.0.90.0120.00516.75
8.0.80.0200.00516.78
8.0.70.0130.00416.72
8.0.60.0120.00516.78
8.0.50.0140.00416.82
8.0.30.0160.01116.84
8.0.20.0170.00717.14
8.0.10.0110.01216.99
8.0.00.0120.00917.05
7.4.330.0100.00315.61
7.4.320.0110.00516.35
7.4.300.0120.00416.39
7.4.290.0120.00316.35
7.4.280.0120.00416.43
7.4.270.0110.00616.43
7.4.260.0190.00316.45
7.4.250.0130.00616.33
7.4.240.0150.00116.41
7.4.230.0150.00216.39
7.4.220.0120.01416.48
7.4.210.0120.01016.37
7.4.200.0110.00616.46
7.4.190.0190.00516.25
7.4.180.0190.00616.19
7.4.160.0150.00616.53
7.4.150.0130.01016.67
7.4.140.0120.00816.98
7.4.130.0100.00916.47
7.4.120.0120.00716.43
7.4.110.0130.00916.42
7.4.100.0120.00916.43
7.4.90.0130.00816.44
7.4.80.0140.00617.21
7.4.70.0120.00716.44
7.4.60.0130.00716.40
7.4.50.0110.00716.41
7.4.40.0130.00816.49
7.4.30.0130.00916.44
7.4.20.0130.00616.29
7.4.10.0140.00515.97
7.4.00.0100.01015.56
7.3.330.0160.00314.66
7.3.320.0120.00314.75
7.3.310.0120.00316.37
7.3.300.0100.00516.27
7.3.290.0120.00616.37
7.3.280.0150.00616.37
7.3.270.0200.00216.70
7.3.260.0170.00516.50
7.3.250.0120.00916.43
7.3.240.0160.00516.42
7.3.230.0140.00816.37
7.3.220.0160.00616.29
7.3.210.0120.00816.38
7.3.200.0100.01017.09
7.3.190.0150.00616.38
7.3.180.0120.00816.40
7.3.170.0130.00716.40
7.3.160.0120.00816.27
7.3.150.0160.00516.31
7.3.140.0190.00416.30
7.3.130.0100.01015.95
7.3.120.0120.00715.59
7.3.110.0120.00715.60
7.3.100.0110.00715.48
7.3.90.0110.00815.66
7.3.80.0130.00515.58
7.3.70.0090.00815.58
7.3.60.0150.00415.56
7.3.50.0120.00615.61
7.3.40.0060.01115.61
7.3.30.0100.00715.46
7.3.20.0120.00616.43
7.3.10.0110.00716.54
7.3.00.0080.00916.54
7.2.340.0120.01316.35
7.2.330.0200.00616.38
7.2.320.0180.00916.50
7.2.310.0160.00816.38
7.2.300.0160.00916.38
7.2.290.0190.01016.51
7.2.280.0210.00916.50
7.2.270.0250.00816.46
7.2.260.0160.01116.05
7.2.250.0150.00815.78
7.2.240.0120.01115.75
7.2.230.0160.00815.71
7.2.220.0120.00815.72
7.2.210.0090.00915.74
7.2.200.0140.00615.74
7.2.190.0110.00915.67
7.2.180.0120.00615.80
7.2.170.0090.01015.69
7.2.160.0160.00715.86
7.2.150.0180.00616.49
7.2.140.0170.00816.54
7.2.130.0120.00716.75
7.2.120.0220.00916.68
7.2.110.0130.01016.64
7.2.100.0130.00916.64
7.2.90.0130.01116.69
7.2.80.0130.00916.63
7.2.70.0150.00716.70
7.2.60.0110.00916.71
7.2.50.0170.00516.73
7.2.40.0140.00616.75
7.2.30.0160.00716.67
7.2.20.0140.00816.70
7.2.10.0170.00716.65
7.2.00.0120.01116.63
7.1.330.0160.00915.95
7.1.320.0120.00615.61
7.1.310.0090.00915.62
7.1.300.0130.00615.45
7.1.290.0100.01015.50
7.1.280.0100.01015.50
7.1.270.0100.01015.48
7.1.260.0110.00915.35
7.1.250.0170.00715.54
7.1.240.0140.00915.37
7.1.230.0210.00415.43
7.1.220.0160.00715.42
7.1.210.0170.00715.45
7.1.200.0180.00915.52
7.1.190.0190.00415.43
7.1.180.0150.00715.36
7.1.170.0150.00915.37
7.1.160.0390.00515.41
7.1.150.0130.00915.38
7.1.140.0160.00915.52
7.1.130.0190.00515.48
7.1.120.0170.00515.37
7.1.110.0160.00716.02
7.1.100.0210.00615.93
7.1.90.0110.01115.94
7.1.80.0160.00916.01
7.1.70.0110.01015.97
7.1.60.0150.01119.39
7.1.50.0140.00818.80
7.1.40.0170.00619.14
7.1.30.0150.00919.21
7.1.20.0150.00819.20
7.1.10.0130.00815.68
7.1.00.0140.01916.63
7.0.330.0180.01015.14
7.0.320.0190.00615.07
7.0.310.0160.00915.07
7.0.300.0160.00715.26
7.0.290.0230.00715.19
7.0.280.0140.01015.23
7.0.270.0190.00515.15
7.0.260.0190.00415.10
7.0.250.0130.00815.56
7.0.240.0160.00515.60
7.0.230.0120.00915.67
7.0.220.0200.00815.62
7.0.210.0130.00915.50
7.0.200.0110.00715.67
7.0.190.0090.01115.50
7.0.180.0140.00715.39
7.0.170.0150.00515.40
7.0.160.0120.00815.45
7.0.150.0160.00715.43
7.0.140.0130.01416.39
7.0.130.0100.01015.32
7.0.120.0140.00715.42
7.0.110.0140.00815.47
7.0.100.0240.01216.22
7.0.90.0110.01516.07
7.0.80.0110.01616.11
7.0.70.0160.01416.05
7.0.60.0130.01716.07
7.0.50.0130.02116.18
7.0.40.0140.01916.19
7.0.30.0170.01616.15
7.0.20.0160.01716.18
7.0.10.0120.01516.15
7.0.00.0140.02116.16
5.6.400.0150.01015.53
5.6.390.0200.00415.53
5.6.380.0180.00815.51
5.6.370.0200.00515.66
5.6.360.0150.00815.49
5.6.350.0170.00815.52
5.6.340.0150.00915.41
5.6.330.0230.00615.54
5.6.320.0180.00615.63
5.6.310.0170.00715.54
5.6.300.0130.02016.60
5.6.290.0130.02016.58
5.6.280.0140.02717.28
5.6.270.0120.02116.63
5.6.260.0120.02016.54
5.6.250.0150.02417.18
5.6.240.0130.03017.21
5.6.230.0160.02417.17
5.6.220.0120.02617.21
5.6.210.0120.02417.27
5.6.200.0140.03217.29
5.6.190.0130.02917.33
5.6.180.0130.02717.24
5.6.170.0140.02617.31
5.6.160.0140.02117.33
5.6.150.0150.02417.30
5.6.140.0170.03017.35
5.6.130.0160.02917.31
5.6.120.0160.02817.21
5.6.110.0160.02217.32
5.6.100.0150.03217.29
5.6.90.0170.02317.18
5.6.80.0150.02617.11
5.6.70.0140.02817.11
5.6.60.0150.02117.11
5.6.50.0120.02517.01
5.6.40.0150.01917.08
5.6.30.0160.02017.07
5.6.20.0110.03217.07
5.6.10.0150.02317.04
5.6.00.0130.02717.05
5.5.380.0110.02716.61
5.5.370.0160.01916.64
5.5.360.0110.03516.68
5.5.350.0170.02716.69
5.5.340.0170.02916.80
5.5.330.0150.02516.75
5.5.320.0140.02916.78
5.5.310.0140.02016.68
5.5.300.0140.03316.80
5.5.290.0140.02716.81
5.5.280.0140.02216.81
5.5.270.0160.02716.80
5.5.260.0120.02816.85
5.5.250.0150.02916.66
5.5.240.0140.02616.54
5.5.230.0160.02616.53
5.5.220.0150.02416.49
5.5.210.0140.02316.54
5.5.200.0150.02216.65
5.5.190.0110.03016.57
5.5.180.0120.02916.53
5.5.170.0190.00515.43
5.5.160.0120.02916.54
5.5.150.0150.02316.53
5.5.140.0170.02016.53
5.5.130.0150.02116.51
5.5.120.0140.02516.52
5.5.110.0140.02816.45
5.5.100.0160.02216.49
5.5.90.0160.02316.45
5.5.80.0090.02516.54
5.5.70.0190.02316.45
5.5.60.0150.02216.47
5.5.50.0170.02116.39
5.5.40.0140.02516.42
5.5.30.0120.02716.61
5.5.20.0170.02216.48
5.5.10.0140.02616.48
5.5.00.0130.02416.48
5.4.450.0090.02415.44
5.4.440.0110.01915.46
5.4.430.0110.02515.50
5.4.420.0100.02515.39
5.4.410.0100.02315.45
5.4.400.0130.01915.32
5.4.390.0110.02115.28
5.4.380.0100.02815.35
5.4.370.0150.02215.32
5.4.360.0130.02015.28
5.4.350.0100.02115.32
5.4.340.0130.01915.37
5.4.330.0140.00513.53
5.4.320.0180.02115.33
5.4.310.0130.01915.26
5.4.300.0140.02415.29
5.4.290.0130.02615.36
5.4.280.0110.02615.23
5.4.270.0110.02215.35
5.4.260.0130.02015.30
5.4.250.0110.02115.27
5.4.240.0120.02415.28
5.4.230.0090.02515.27
5.4.220.0110.02315.29
5.4.210.0120.02615.28
5.4.200.0100.02215.25
5.4.190.0120.02015.24
5.4.180.0070.02315.32
5.4.170.0100.02115.34
5.4.160.0110.02415.31
5.4.150.0120.02015.24
5.4.140.0100.02214.44
5.4.130.0100.01914.45
5.4.120.0100.01914.42
5.4.110.0090.02714.47
5.4.100.0090.02514.43
5.4.90.0130.02114.40
5.4.80.0090.02714.51
5.4.70.0110.02714.44
5.4.60.0140.02014.45
5.4.50.0130.01614.42
5.4.40.0140.02114.46
5.4.30.0100.02514.46
5.4.20.0130.01614.47
5.4.10.0110.02314.51
5.4.00.0120.02014.22

preferences:
48.94 ms | 401 KiB | 5 Q