3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('a"b', 'a\\"b'); $file = fopen('php://memory', 'w+'); fputcsv($file, $array); rewind($file); var_dump(rtrim(stream_get_contents($file))); fclose($file);

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.4.10.0080.00017.72
8.3.140.0040.00418.25
8.3.130.0110.00718.97
8.3.120.0050.00319.04
8.3.110.0120.00620.94
8.3.100.0030.00616.46
8.3.90.0030.00626.77
8.3.80.0090.00016.63
8.3.70.0100.01318.40
8.3.60.0120.00916.63
8.3.50.0160.00321.99
8.3.40.0070.00718.71
8.3.30.0090.00618.93
8.3.20.0040.00420.14
8.3.10.0030.00620.59
8.3.00.0060.00317.38
8.2.260.0030.01616.94
8.2.250.0000.00816.71
8.2.240.0060.00316.88
8.2.230.0040.00422.58
8.2.220.0040.00424.06
8.2.210.0080.00026.77
8.2.200.0030.00616.38
8.2.190.0110.00316.63
8.2.180.0070.01425.92
8.2.170.0120.00318.83
8.2.160.0100.01022.96
8.2.150.0040.01125.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00019.66
8.2.110.0070.00322.13
8.2.100.0040.00817.72
8.2.90.0050.00317.91
8.2.80.0040.00419.44
8.2.70.0000.00817.50
8.2.60.0000.00818.04
8.2.50.0000.00918.10
8.2.40.0000.00720.47
8.2.30.0050.00318.03
8.2.20.0000.00717.59
8.2.10.0040.00417.96
8.2.00.0040.00417.54
8.1.310.0140.00416.45
8.1.300.0040.00417.83
8.1.290.0000.00830.84
8.1.280.0000.01525.92
8.1.270.0080.00024.66
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0070.00323.92
8.1.230.0070.00722.59
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0040.00417.09
8.1.190.0040.00417.09
8.1.180.0030.00518.10
8.1.170.0060.00318.54
8.1.160.0080.00022.05
8.1.150.0000.00718.73
8.1.140.0040.00417.49
8.1.130.0070.00017.75
8.1.120.0040.00417.44
8.1.110.0040.00417.27
8.1.100.0070.00017.43
8.1.90.0020.00517.42
8.1.80.0000.00717.23
8.1.70.0000.00717.38
8.1.60.0050.00317.53
8.1.50.0080.00017.43
8.1.40.0050.00317.47
8.1.30.0000.00817.51
8.1.20.0020.00517.41
8.1.10.0070.00017.41
8.1.00.0040.00417.30
8.0.300.0040.00421.96
8.0.290.0000.01016.63
8.0.280.0030.00318.43
8.0.270.0030.00317.18
8.0.260.0030.00317.14
8.0.250.0000.00716.84
8.0.240.0030.00316.86
8.0.230.0040.00416.98
8.0.220.0000.00716.89
8.0.210.0040.00416.77
8.0.200.0000.00616.92
8.0.190.0030.00316.89
8.0.180.0000.00716.95
8.0.170.0040.00416.93
8.0.160.0000.00716.89
8.0.150.0070.00016.82
8.0.140.0040.00416.73
8.0.130.0000.00813.32
8.0.120.0080.00016.74
8.0.110.0070.00016.95
8.0.100.0040.00416.87
8.0.90.0000.00716.90
8.0.80.0060.00916.90
8.0.70.0040.00416.82
8.0.60.0040.00416.72
8.0.50.0040.00416.70
8.0.30.0120.00617.11
8.0.20.0120.00717.40
8.0.10.0000.00716.95
8.0.00.0070.01116.64
7.4.330.0050.00015.02
7.4.320.0030.00316.45
7.4.300.0030.00316.52
7.4.290.0000.00716.57
7.4.280.0040.00416.34
7.4.270.0030.00316.57
7.4.260.0030.00616.43
7.4.250.0070.00016.41
7.4.240.0030.00416.46
7.4.230.0080.00016.51
7.4.220.0150.00316.57
7.4.210.0090.01016.61
7.4.200.0070.00016.57
7.4.160.0030.01316.34
7.4.150.0030.01317.40
7.4.140.0120.00717.86
7.4.130.0100.01016.59
7.4.120.0110.00916.42
7.4.110.0100.01016.27
7.4.100.0060.01016.45
7.4.90.0170.00016.50
7.4.80.0070.01019.39
7.4.70.0090.00916.46
7.4.60.0000.01616.54
7.4.50.0040.00416.39
7.4.40.0140.01016.29
7.4.30.0090.00916.44
7.4.00.0100.00614.71
7.3.330.0020.00213.05
7.3.320.0000.00613.12
7.3.310.0070.00016.23
7.3.300.0030.00316.05
7.3.290.0070.00716.19
7.3.280.0070.01216.16
7.3.270.0170.00717.40
7.3.260.0080.00816.47
7.3.240.0130.00316.30
7.3.230.0160.00016.39
7.3.210.0060.01216.29
7.3.200.0060.01419.39
7.3.190.0120.00616.44
7.3.180.0080.00816.45
7.3.170.0070.01016.33
7.3.160.0130.00716.38
7.2.330.0060.01216.54
7.2.320.0120.00616.55
7.2.310.0090.01116.66
7.2.300.0180.00016.65
7.2.290.0030.01416.42
7.2.110.0180.00816.22
7.2.100.0160.00816.30
7.2.90.0170.00916.46
7.2.80.0040.01216.46
7.2.70.0000.01716.48
7.2.60.0030.01216.75
7.2.50.0040.01116.54
7.2.40.0110.00316.85
7.2.30.0090.00616.50
7.2.20.0090.00616.86
7.2.10.0110.00416.77
7.2.00.0070.00716.93
7.1.230.0150.00815.81
7.1.220.0150.01015.52
7.1.210.0220.00415.56
7.1.200.0100.00315.62
7.1.190.0070.00715.71
7.1.180.0100.00315.37
7.1.170.0110.00415.46
7.1.160.0060.00615.83
7.1.150.0060.00915.81
7.1.140.0060.00915.65
7.1.130.0030.01015.47
7.1.120.0030.01315.54
7.1.110.0000.01315.91
7.1.100.0040.00815.74
7.1.90.0070.00715.47
7.1.80.0060.00915.80
7.1.70.0090.00916.21
7.1.60.0060.01317.51
7.1.50.0100.01216.08
7.1.40.0070.01015.82
7.1.30.5050.00315.82
7.1.20.0270.01215.80
7.1.10.0480.00315.26
7.1.00.0240.04118.92
7.0.310.0060.00915.36
7.0.300.0030.01015.40
7.0.290.0040.01115.26
7.0.280.0080.00815.42
7.0.270.0080.00815.10
7.0.260.0100.00315.32
7.0.250.0070.00715.25
7.0.240.0040.01115.54
7.0.230.0040.01115.13
7.0.220.0080.00815.25
7.0.210.0070.00715.29
7.0.200.0020.00915.84
7.0.190.0060.00614.96
7.0.180.0070.01015.50
7.0.170.0130.01315.29
7.0.160.0110.01415.32
7.0.150.0280.01215.32
7.0.140.0140.04318.61
7.0.130.0180.00915.39
7.0.120.0210.00614.98
7.0.110.0200.00715.37
7.0.100.0140.04217.71
7.0.90.0140.04217.53
7.0.80.0120.03217.46
7.0.70.0100.04217.64
7.0.60.0110.04217.55
7.0.50.0170.03617.78
7.0.40.0160.02516.69
7.0.30.0100.04516.61
7.0.20.0140.03716.71
7.0.10.0170.04416.84
7.0.00.0130.04716.65
5.6.380.0210.00214.30
5.6.370.0220.00313.99
5.6.360.0170.00713.94
5.6.350.0200.00314.16
5.6.340.0110.01814.35
5.6.330.0160.00514.44
5.6.320.0180.00514.02
5.6.310.0170.01014.53
5.6.300.0270.01714.37
5.6.290.0290.00814.12
5.6.280.0130.04317.60
5.6.270.0190.00814.33
5.6.260.0190.00714.23
5.6.250.0160.04117.36
5.6.240.0080.04717.48
5.6.230.0100.03117.46
5.6.220.0120.03117.26
5.6.210.0060.03017.38
5.6.200.0140.04217.70
5.6.190.0110.04517.54
5.6.180.0120.04617.75
5.6.170.0200.03717.63
5.6.160.0100.04517.65
5.6.150.0200.03317.55
5.6.140.0090.03817.73
5.6.130.0100.04717.67
5.6.120.0090.03717.66
5.6.110.0130.04317.67
5.6.100.0120.04717.65
5.6.90.0150.03817.56
5.6.80.0160.02917.38
5.6.70.0120.04417.25
5.6.60.0090.04617.24
5.6.50.0120.04517.15
5.6.40.0070.04917.20
5.6.30.0090.04417.37
5.6.20.0100.04617.23
5.6.10.0160.04117.31
5.6.00.0130.03817.28
5.5.380.0090.04615.69
5.5.370.0080.04615.86
5.5.360.0040.03215.67
5.5.350.0110.04615.63
5.5.340.0140.02115.90
5.5.330.0100.04215.85
5.5.320.0150.02515.83
5.5.310.0080.04015.85
5.5.300.0070.03415.83
5.5.290.0140.02515.85
5.5.280.0120.02315.79
5.5.270.0130.03815.85
5.5.260.0110.03815.86
5.5.250.0070.04515.71
5.5.240.0050.03815.51
5.5.230.0120.03915.51
5.5.220.0100.04015.47
5.5.210.0150.03415.53
5.5.200.0070.04615.59
5.5.190.0080.04615.37
5.5.180.0060.03815.47
5.5.170.0180.00614.11
5.5.160.0130.03715.54
5.5.150.0090.03815.37
5.5.140.0100.03815.56
5.5.130.0090.03715.33
5.5.120.0100.02715.29
5.5.110.0070.04315.47
5.5.100.0180.03515.56
5.5.90.0130.03615.43
5.5.80.0120.03315.38
5.5.70.0040.04415.54
5.5.60.0090.04015.55
5.5.50.0070.04115.42
5.5.40.0090.04315.49
5.5.30.0060.04015.45
5.5.20.0150.03615.30
5.5.10.0140.03815.48
5.5.00.0090.04515.51
5.4.450.0090.04415.11
5.4.440.0070.02915.11
5.4.430.0060.04415.12
5.4.420.0100.03515.04
5.4.410.0110.04115.03
5.4.400.0140.03214.90
5.4.390.0120.04014.91
5.4.380.0030.03514.88
5.4.370.0140.02014.63
5.4.360.0080.04014.87
5.4.350.0090.04214.91
5.4.340.0090.03914.95
5.4.330.0090.00610.87
5.4.320.0060.04115.02
5.4.310.0080.04014.98
5.4.300.0100.03914.99
5.4.290.0030.04514.91
5.4.280.0070.02614.94
5.4.270.0130.03314.76
5.4.260.0120.03314.90
5.4.250.0050.03014.81
5.4.240.0130.03515.04
5.4.230.0050.03914.92
5.4.220.0080.04114.74
5.4.210.0070.02414.92
5.4.200.0070.02214.85
5.4.190.0050.03614.80
5.4.180.0110.03814.79
5.4.170.0080.03915.00
5.4.160.0080.04314.74
5.4.150.0060.03214.90
5.4.140.0110.02013.51
5.4.130.0120.03713.61
5.4.120.0110.03313.77
5.4.110.0090.03813.77
5.4.100.0120.02013.66
5.4.90.0090.03813.72
5.4.80.0030.04113.64
5.4.70.0090.03113.45
5.4.60.0050.03213.60
5.4.50.0090.03513.71
5.4.40.0120.03713.72
5.4.30.0110.03013.70
5.4.20.0060.04013.59
5.4.10.0050.04313.64
5.4.00.0160.03413.15
5.3.290.0140.03312.46
5.3.280.0120.03212.48
5.3.270.0110.03012.52
5.3.260.0080.03912.62
5.3.250.0080.02512.55
5.3.240.0120.01812.52
5.3.230.0110.03212.51
5.3.220.0100.04012.48
5.3.210.0070.03712.45
5.3.200.0070.03912.43
5.3.190.0070.04412.41
5.3.180.0110.03712.47
5.3.170.0050.04012.44
5.3.160.0060.03612.43
5.3.150.0060.02712.54
5.3.140.0100.04012.42
5.3.130.0120.03412.50
5.3.120.0080.04112.47
5.3.110.0090.03812.43
5.3.100.0080.04012.21
5.3.90.0050.04012.24
5.3.80.0050.04312.13
5.3.70.0080.03912.15
5.3.60.0080.03912.19
5.3.50.0090.03512.09
5.3.40.0070.03712.09
5.3.30.0110.02012.13
5.3.20.0050.04012.04
5.3.10.0070.03612.01
5.3.00.0110.04711.98
5.2.170.0090.03311.34
5.2.160.0070.03011.34
5.2.150.0070.03111.34
5.2.140.0100.03011.34
5.2.130.0060.03511.34
5.2.120.0060.03111.34
5.2.110.0100.01811.34
5.2.100.0100.03011.34
5.2.90.0020.03611.34
5.2.80.0050.02211.34
5.2.70.0110.02811.34
5.2.60.0050.03511.34
5.2.50.0050.03311.34
5.2.40.0090.03211.34
5.2.30.0040.02111.34
5.2.20.0080.03211.34
5.2.10.0060.03011.34
5.2.00.0040.03211.34
5.1.60.0050.02211.34
5.1.50.0070.02711.34
5.1.40.0040.03011.34
5.1.30.0070.02911.34
5.1.20.0040.02711.34
5.1.10.0110.02211.34
5.1.00.0050.02811.34
5.0.50.0020.01711.34
5.0.40.0040.02311.34
5.0.30.0100.02911.34
5.0.20.0040.01511.34
5.0.10.0060.02211.34
5.0.00.0080.03011.34
4.4.90.0030.02011.34
4.4.80.0000.01611.34
4.4.70.0040.01911.34
4.4.60.0000.02211.34
4.4.50.0050.01711.34
4.4.40.0030.02811.34
4.4.30.0020.01911.34
4.4.20.0020.02011.34
4.4.10.0070.00811.34
4.4.00.0070.02711.34
4.3.110.0040.01311.34
4.3.100.0040.01911.34
4.3.90.0020.01511.34
4.3.80.0000.03011.34
4.3.70.0040.01711.34
4.3.60.0000.02211.34
4.3.50.0050.01211.34
4.3.40.0040.02711.34
4.3.30.0060.01611.34
4.3.20.0000.02111.34
4.3.10.0040.02011.34
4.3.00.0040.01811.34

preferences:
29.85 ms | 403 KiB | 5 Q