3v4l.org

run code in 200+ PHP versions simultaneously
<?php $handle = fopen('php://memory', 'w+b'); fputcsv($handle, [ 'foo bar\\', # 1 'baz quz', # 2 'x', # 3 'y', # 4 'z', # 5 'foo\\\\",bar' # 6 ]); rewind($handle); var_dump(fgetcsv($handle)); // array(6) { // [0]=> string(18) "foo bar\",baz quz"" # 1 // [1]=> string(1) "x" # 2 (was # 3) // [2]=> string(1) "y" # 3 (was # 4) // [3]=> string(1) "z" # 4 (was # 5) // [4]=> string(5) "foo\\" # 5 // [5]=> string(4) "bar"" # 6 // }

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)
7.4.10.0070.01114.86
7.4.00.0050.01115.04
7.3.130.0100.01014.82
7.3.120.0100.00714.74
7.3.110.0090.00914.49
7.3.100.0100.00314.99
7.3.90.0040.00714.83
7.3.80.0070.00414.99
7.3.70.0030.01014.43
7.3.60.0090.00314.50
7.3.50.0070.00714.72
7.3.40.0060.00614.33
7.3.30.0080.00414.84
7.3.20.0060.00616.63
7.3.10.0030.00716.71
7.3.00.0060.00616.48
7.2.260.0060.01314.60
7.2.250.0080.00814.66
7.2.240.0040.01115.11
7.2.230.0030.01314.96
7.2.220.0110.00714.73
7.2.210.0070.00714.82
7.2.200.0040.01114.66
7.2.190.0030.01014.72
7.2.180.0000.01415.03
7.2.170.0090.00014.91
7.2.160.0070.00715.00
7.2.150.0090.00416.87
7.2.140.0090.00616.49
7.2.130.0000.01416.55
7.2.120.0120.00316.94
7.2.110.0060.01016.73
7.2.100.0000.01416.82
7.2.90.0100.00616.74
7.2.80.0060.00816.82
7.2.70.0030.00916.84
7.2.60.0040.00816.73
7.2.50.0150.01216.62
7.2.40.0040.01416.85
7.2.30.0090.00616.62
7.2.20.0030.00916.69
7.2.10.0070.00716.44
7.2.00.0060.00316.87
7.1.330.0070.00715.93
7.1.320.0000.01415.70
7.1.310.0040.00915.65
7.1.300.0030.00615.61
7.1.290.0140.00015.83
7.1.280.0000.01415.73
7.1.270.0000.01415.69
7.1.260.0070.00315.71
7.1.250.0040.00715.65
7.1.240.0110.00415.75
7.1.230.0030.00915.76
7.1.220.0000.01215.84
7.1.210.0030.01015.50
7.1.200.0080.00615.80
7.1.190.0030.00615.85
7.1.180.0030.01015.64
7.1.170.0030.01015.86
7.1.160.0090.00015.63
7.1.150.0040.01115.76
7.1.140.0080.00415.81
7.1.130.0030.00915.76
7.1.120.0000.01215.73
7.1.110.0040.00715.75
7.1.100.0050.00315.82
7.1.90.0060.00615.58
7.1.80.0030.00815.62
7.1.70.0060.00916.38
7.1.60.0030.01317.72
7.1.50.0080.00916.19
7.1.40.0070.00715.84
7.1.30.0060.00615.78
7.1.20.0100.00715.67
7.1.10.0030.01015.56
7.1.00.0040.04219.04
7.0.330.0070.00715.17
7.0.320.0030.00615.10
7.0.310.0110.00415.18
7.0.300.0070.00715.54
7.0.290.0030.00715.39
7.0.280.0050.00515.18
7.0.270.0100.00015.21
7.0.260.0000.00915.10
7.0.250.0070.00315.28
7.0.240.0030.01015.25
7.0.230.0060.00915.37
7.0.220.0070.00715.28
7.0.210.0040.00815.53
7.0.200.0020.00615.99
7.0.190.0040.01115.41
7.0.180.0030.00615.50
7.0.170.0070.00715.18
7.0.160.0060.00915.41
7.0.150.0090.00315.43
7.0.140.0090.00315.50
7.0.130.0070.00414.94
7.0.120.0070.00715.50
7.0.110.0030.01015.34
7.0.100.0070.00715.34
7.0.90.0090.00015.42
7.0.80.0040.00715.21
7.0.70.0030.03818.57
7.0.60.0020.05018.57
7.0.50.0040.04418.81
7.0.40.0070.04516.67
7.0.30.0050.03716.78
7.0.20.0050.04216.76
7.0.10.0050.04316.80
7.0.00.0080.04216.71
5.6.400.0040.00714.04
5.6.390.0000.01214.25
5.6.380.0090.00314.32
5.6.370.0080.00814.39
5.6.360.0060.01214.32
5.6.350.0030.00914.49
5.6.340.0040.00714.58
5.6.330.0000.01614.33
5.6.320.0060.00613.98
5.6.310.0140.00014.31
5.6.300.0040.00413.86
5.6.290.0040.01113.96
5.6.280.0060.03717.68
5.6.270.0060.00614.52
5.6.260.0090.00614.20
5.6.250.0000.00914.45
5.6.240.0070.00414.07
5.6.230.0030.00614.07
5.6.220.0070.04317.34
5.6.210.0070.04217.36
5.6.200.0090.04217.51
5.6.190.0030.02617.61
5.6.180.0090.02817.65
5.6.170.0040.04317.64
5.6.160.0080.04217.66
5.6.150.0090.04217.50
5.6.140.0020.04117.63
5.6.130.0050.04417.73
5.6.120.0070.04417.60
5.6.110.0050.04717.70
5.6.100.0050.03517.56
5.6.90.0060.04317.51
5.6.80.0050.04617.45
5.6.70.0080.02817.28
5.6.60.0050.04417.30
5.6.50.0050.03617.36
5.6.40.0050.03817.20
5.6.30.0070.04017.34
5.6.20.0050.04617.24
5.6.10.0050.04617.14
5.6.00.0020.04317.35
5.5.380.0040.00713.99
5.5.370.0080.00314.16
5.5.360.0030.04817.30
5.5.350.0030.03417.27
5.5.340.0030.03017.64
5.5.330.0060.04117.52
5.5.320.0020.04917.71
5.5.310.0050.04517.39
5.5.300.0030.03017.38
5.5.290.0100.04117.44
5.5.280.0030.04817.53
5.5.270.0070.03017.56
5.5.260.0100.04017.41
5.5.250.0030.02317.37
5.5.240.0050.04517.09
5.5.230.0090.01917.13
5.5.220.0080.04217.20
5.5.210.0090.04117.17
5.5.200.0100.03817.03
5.5.190.0070.04317.10
5.5.180.0000.03817.06
5.5.170.0090.00613.85
5.5.160.0090.03117.08
5.5.150.0050.04317.10
5.5.140.0070.04517.13
5.5.130.0050.03517.20
5.5.120.0070.02717.32
5.5.110.0070.04217.26
5.5.100.0060.04117.08
5.5.90.0030.04317.17
5.5.80.0050.04317.25
5.5.70.0050.04016.91
5.5.60.0050.03617.25
5.5.50.0030.02517.00
5.5.40.0090.03516.97
5.5.30.0080.04017.13
5.5.20.0060.04517.12
5.5.10.0100.03817.02
5.5.00.0060.04316.91
5.4.450.0030.08019.40
5.4.440.0000.08719.55
5.4.430.0000.04319.28
5.4.420.0030.05319.30
5.4.410.0070.04719.10
5.4.400.0070.05019.03
5.4.390.0030.04718.78
5.4.380.0000.08019.02
5.4.370.0100.05019.03
5.4.360.0030.05318.81
5.4.350.0000.07019.09
5.4.340.0030.07718.79
5.4.320.0130.05718.92
5.4.310.0100.06318.90
5.4.300.0130.06318.94
5.4.290.0100.07019.04
5.4.280.0030.05018.80
5.4.270.0030.08019.12
5.4.260.0000.08319.04
5.4.250.0000.06019.01
5.4.240.0070.06318.95
5.4.230.0000.05019.02
5.4.220.0070.07318.89
5.4.210.0000.04319.11
5.4.200.0070.07719.07
5.4.190.0070.05719.13
5.4.180.0030.07318.95
5.4.170.0000.08018.89
5.4.160.0030.08018.94
5.4.150.0070.07019.03
5.4.140.0000.05316.47
5.4.130.0030.07716.32
5.4.120.0000.04716.26
5.4.110.0030.07016.50
5.4.100.0070.05016.20
5.4.90.0000.04016.44
5.4.80.0030.07716.42
5.4.70.0100.06316.16
5.4.60.0030.07016.19
5.4.50.0000.07716.30
5.4.40.0030.06716.41
5.4.30.0070.06316.33
5.4.20.0100.07016.18
5.4.10.0000.06016.38
5.4.00.0000.07715.77
5.3.290.0070.05714.66
5.3.280.0070.05714.55
5.3.270.0000.07314.54
5.3.260.0000.05314.57
5.3.250.0000.08314.45
5.3.240.0070.06314.47
5.3.230.0000.05314.58
5.3.220.0000.05014.40
5.3.210.0030.08014.50
5.3.200.0000.08314.56
5.3.190.0070.07014.51
5.3.180.0070.07014.39
5.3.170.0030.08014.52
5.3.160.0000.07714.52
5.3.150.0070.05314.54
5.3.140.0030.07714.42
5.3.130.0000.08314.54
5.3.120.0030.05314.51
5.3.110.0030.05314.48
5.3.100.0030.05314.02
5.3.90.0000.07014.00
5.3.80.0070.03713.95
5.3.70.0030.07014.00
5.3.60.0030.07313.96
5.3.50.0070.07013.89
5.3.40.0000.06313.93
5.3.30.0000.05013.90
5.3.20.0070.07013.65
5.3.10.0030.07313.66
5.3.00.0070.07313.59
5.2.170.0000.06312.21
5.2.160.0070.05312.21
5.2.150.0000.05012.21
5.2.140.0000.04012.21
5.2.130.0000.06012.21
5.2.120.0030.05012.21
5.2.110.0070.05712.21
5.2.100.0000.06712.21
5.2.90.0030.06012.21
5.2.80.0000.05012.21
5.2.70.0000.06012.21
5.2.60.0030.04312.21
5.2.50.0030.04012.21
5.2.40.0000.04712.21
5.2.30.0000.03012.21
5.2.20.0070.06012.21
5.2.10.0070.06012.21
5.2.00.0070.05012.21
5.1.60.0070.03312.21
5.1.50.0030.05312.21
5.1.40.0070.02012.21
5.1.30.0000.03012.21
5.1.20.0000.06012.21
5.1.10.0030.05012.21
5.1.00.0000.06012.21
5.0.50.0000.05012.21
5.0.40.0100.03712.21
5.0.30.0000.05312.21
5.0.20.0030.04012.21
5.0.10.0000.03312.21
5.0.00.0000.05312.21
4.4.90.0030.02712.21
4.4.80.0000.02712.21
4.4.70.0000.02012.21
4.4.60.0000.03712.21
4.4.50.0000.03712.21
4.4.40.0070.04012.21
4.4.30.0030.02012.21
4.4.20.0030.03012.21
4.4.10.0030.03312.21
4.4.00.0000.04712.21
4.3.110.0030.02312.21
4.3.100.0030.03012.21
4.3.90.0000.03312.21
4.3.80.0000.05312.21
4.3.70.0000.03712.21
4.3.60.0000.03012.21
4.3.50.0000.03712.21
4.3.40.0070.03712.21
4.3.30.0000.04012.21
4.3.20.0070.03312.21
4.3.10.0000.03712.21
4.3.00.0070.03312.21