3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row_before = ['A', json_encode(['a', '\\', 'b']), 'B']; print "\nBEFORE:\n"; var_export($row_before); print "\n"; $fh = fopen($file = 'php://temp', 'rb+'); fputcsv($fh, $row_before, ',', '"', "\0"); rewind($fh); $row_after = fgetcsv($fh); print "\nAFTER:\n"; var_export($row_after); print "\n\n"; fclose($fh);

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.140.0150.00717.51
8.4.130.0080.00617.86
8.4.120.0150.00819.86
8.4.110.0150.00518.68
8.4.100.0150.00618.00
8.4.90.0170.00518.67
8.4.80.0180.00418.22
8.4.70.0160.00618.79
8.4.60.0150.00718.07
8.4.50.0140.00717.67
8.4.40.0150.00517.59
8.4.30.0160.00518.23
8.4.20.0180.00517.65
8.4.10.0140.00518.41
8.3.260.0190.00416.20
8.3.250.0160.00617.35
8.3.240.0120.00517.85
8.3.230.0160.00616.30
8.3.220.0160.00517.27
8.3.210.0160.00616.40
8.3.200.0130.00416.56
8.3.190.0140.00416.62
8.3.180.0150.00416.42
8.3.170.0160.00416.64
8.3.160.0180.00216.45
8.3.150.0130.00716.68
8.3.140.0110.00717.47
8.3.130.0140.00516.45
8.3.120.0130.00617.26
8.3.110.0120.00418.04
8.3.100.0140.00416.51
8.3.90.0130.00419.86
8.3.80.0170.00217.15
8.3.70.0150.00617.14
8.3.60.0170.00516.59
8.3.50.0150.00616.51
8.3.40.0130.00717.89
8.3.30.0110.00617.73
8.3.20.0140.00118.32
8.3.10.0120.00318.93
8.3.00.0100.00419.46
8.2.290.0150.00417.38
8.2.280.0120.00616.63
8.2.270.0110.00616.68
8.2.260.0150.00516.70
8.2.250.0090.00617.27
8.2.240.0120.00416.74
8.2.230.0140.00518.56
8.2.220.0110.00619.00
8.2.210.0110.00419.95
8.2.200.0130.00316.55
8.2.190.0150.00516.57
8.2.180.0140.00617.04
8.2.170.0150.00518.01
8.2.160.0180.00219.47
8.2.150.0140.00219.78
8.2.140.0120.00619.82
8.2.130.0120.00420.28
8.2.120.0110.00418.66
8.2.110.0130.00318.61
8.2.100.0130.00517.59
8.2.90.0140.00317.71
8.2.80.0090.00617.61
8.2.70.0110.00517.59
8.2.60.0100.00617.64
8.2.50.0150.00317.54
8.2.40.0090.00617.72
8.2.30.0100.00417.90
8.2.20.0100.00517.88
8.2.10.0100.00517.94
8.2.00.0080.00617.96
8.1.330.0140.00516.13
8.1.320.0130.00415.93
8.1.310.0110.00816.97
8.1.300.0120.00816.73
8.1.290.0110.00521.00
8.1.280.0160.00419.16
8.1.270.0130.00517.78
8.1.260.0100.00520.36
8.1.250.0120.00520.85
8.1.240.0120.00417.24
8.1.230.0130.00318.60
8.1.220.0100.00517.49
8.1.210.0080.00617.67
8.1.200.0080.00717.22
8.1.190.0100.00517.21
8.1.180.0090.00517.36
8.1.170.0120.00517.68
8.1.160.0090.00418.80
8.1.150.0100.00517.96
8.1.140.0110.00418.15
8.1.130.0100.00417.65
8.1.120.0080.00617.63
8.1.110.0120.00317.51
8.1.100.0120.00417.55
8.1.90.0100.00517.65
8.1.80.0090.00517.70
8.1.70.0110.00417.61
8.1.60.0100.00617.81
8.1.50.0100.00517.70
8.1.40.0080.00617.80
8.1.30.0100.00417.77
8.1.20.0100.00517.83
8.1.10.0100.00617.61
8.1.00.0080.00617.44
8.0.300.0090.00417.52
8.0.290.0100.00516.60
8.0.280.0100.00417.48
8.0.270.0100.00516.98
8.0.260.0090.00516.90
8.0.250.0090.00617.12
8.0.240.0090.00617.10
8.0.230.0090.00617.06
8.0.220.0090.00517.01
8.0.210.0080.00516.95
8.0.200.0110.00417.15
8.0.190.0080.00617.06
8.0.180.0120.00317.08
8.0.170.0110.00417.11
8.0.160.0100.00517.06
8.0.150.0080.00616.81
8.0.140.0100.00517.03
8.0.130.0100.00516.10
8.0.120.0090.00616.96
8.0.110.0100.00417.04
8.0.100.0110.00317.01
8.0.90.0110.00516.97
8.0.80.0100.00516.93
8.0.70.0100.00517.00
8.0.60.0110.00317.06
8.0.50.0090.00516.92
8.0.30.0120.00617.01
8.0.20.0090.00917.23
8.0.10.0110.00617.09
8.0.00.0110.00716.95
7.4.330.0090.00216.19
7.4.320.0080.00616.62
7.4.300.0080.00616.67
7.4.290.0090.00416.65
7.4.280.0110.00216.60
7.4.270.0100.00416.59
7.4.260.0110.00316.74
7.4.250.0110.00316.70
7.4.240.0110.00216.74
7.4.230.0090.00416.66
7.4.220.0100.00616.64
7.4.210.0120.00716.74
7.4.200.0090.00416.70
7.4.190.0130.00216.80
7.4.180.0120.00516.80
7.4.160.0100.00516.67
7.4.150.0120.00416.79
7.4.140.0110.00717.27
7.4.130.0110.00816.63
7.4.120.0140.00616.57
7.4.110.0120.00616.66
7.4.100.0130.00616.68
7.4.90.0130.00616.57
7.4.80.0110.00916.99
7.4.70.0120.00716.60
7.4.60.0130.00716.52
7.4.50.0110.00916.49
7.4.40.0120.00716.46
7.4.30.0120.00616.53
7.4.20.0140.00616.46
7.4.10.0120.00616.62
7.4.00.0080.00916.24
7.3.330.0080.00415.58
7.3.320.0080.00415.62
7.3.310.0090.00416.32
7.3.300.0110.00316.39
7.3.290.0100.00316.32
7.3.280.0080.00816.33
7.3.270.0100.00616.60
7.3.260.0110.00616.47
7.3.250.0110.00816.42
7.3.240.0130.00516.32
7.3.230.0120.00616.35
7.3.220.0130.00616.40
7.3.210.0110.00816.27
7.3.200.0120.00516.40
7.3.190.0130.00716.24
7.3.180.0140.00516.35
7.3.170.0130.00616.29
7.3.160.0110.00816.24
7.3.150.0100.00816.22
7.3.140.0160.00516.25
7.3.130.0130.00616.27
7.3.120.0110.00716.06
7.3.110.0110.00816.19
7.3.100.0130.00615.82
7.3.90.0120.00615.84
7.3.80.0120.00715.84
7.3.70.0140.00715.75
7.3.60.0120.00615.75
7.3.50.0130.00615.74
7.3.40.0110.00815.73
7.3.30.0110.00615.74
7.3.20.0360.00616.24
7.3.10.0320.00616.20
7.3.00.0190.00816.24
7.2.340.0130.00716.36
7.2.330.0150.00516.49
7.2.320.0140.00616.56
7.2.310.0130.00716.49
7.2.300.0140.00516.43
7.2.290.0130.00616.50
7.2.280.0140.00416.54
7.2.270.0130.00716.46
7.2.260.0120.00816.56
7.2.250.0110.00816.33
7.2.240.0120.00916.30
7.2.230.0110.00716.33
7.2.220.0180.00816.07
7.2.210.0110.00915.97
7.2.200.0170.00715.96
7.2.190.0130.00515.94
7.2.180.0150.00715.92
7.2.170.0130.00616.00
7.2.160.0270.00716.05
7.2.150.0220.00516.41
7.2.140.0280.00616.46
7.2.130.0270.00716.46
7.2.120.0410.00916.44
7.2.110.0280.00716.53
7.2.100.0330.00616.49
7.2.90.0240.00916.50
7.2.80.0220.00916.44
7.2.70.0330.00816.50
7.2.60.0340.00516.54
7.2.50.0250.00916.60
7.2.40.0230.00616.55
7.2.30.0190.00816.75
7.2.20.0270.00916.73
7.2.10.0280.00816.79
7.2.00.0240.00916.83
7.1.330.0200.00815.78
7.1.320.0260.00715.34
7.1.310.0240.00815.35
7.1.300.0300.00615.41
7.1.290.0270.00815.44
7.1.280.0210.00615.39
7.1.270.0210.00815.39
7.1.260.0200.00715.40
7.1.250.0250.00715.25
7.1.240.0330.00915.31
7.1.230.0220.00815.58
7.1.220.0310.00915.30
7.1.210.0220.00815.34
7.1.200.0220.00615.37
7.1.190.0350.00715.31
7.1.180.0240.00615.36
7.1.170.0260.00715.28
7.1.160.0260.00515.40
7.1.150.0510.00815.50
7.1.140.0260.00815.56
7.1.130.0350.00815.73
7.1.120.0300.00915.63
7.1.110.0330.00715.49
7.1.100.0360.00715.54
7.1.90.0260.00715.47
7.1.80.0230.00915.56
7.1.70.0200.00715.43
7.1.60.0230.00719.97
7.1.50.0210.00819.87
7.1.40.0230.01119.76
7.1.30.0230.01019.83
7.1.20.0250.01019.80
7.1.10.0180.00915.31
7.1.00.0190.00715.28
7.0.330.0280.00614.99
7.0.320.0260.00714.99
7.0.310.0290.00815.00
7.0.300.0280.00815.05
7.0.290.0290.01015.10
7.0.280.0270.00715.11
7.0.270.0250.00815.31
7.0.260.0240.01015.38
7.0.250.0280.00715.22
7.0.240.0290.00715.25
7.0.230.0290.00815.22
7.0.220.0250.00815.27
7.0.210.0170.00915.17
7.0.200.0170.00715.14
7.0.190.0170.00815.09
7.0.180.0180.00715.02
7.0.170.0350.00715.09
7.0.160.0200.00715.01
7.0.150.0180.00914.95
7.0.140.0240.00715.00
7.0.130.0130.00815.10
7.0.120.0150.00915.16
7.0.110.0160.00715.05
7.0.100.0150.00815.07
7.0.90.0270.00814.98
7.0.80.0150.00614.98
7.0.70.0150.00714.99
7.0.60.0150.00715.16
7.0.50.0170.00714.97
7.0.40.0140.00715.10
7.0.30.0200.00715.07
7.0.20.0250.00714.99
7.0.10.0190.00815.09
7.0.00.0190.00815.02
5.6.400.0210.00715.48
5.6.390.0130.00915.42
5.6.380.0350.00715.39
5.6.370.0190.01015.57
5.6.360.0430.00915.55
5.6.350.0120.00715.53
5.6.340.0310.00515.59
5.6.330.0120.00715.60
5.6.320.0110.00815.57
5.6.310.0110.00915.69
5.6.300.0160.02217.02
5.6.290.0130.02317.03
5.6.280.0230.02317.09
5.6.270.0140.02517.13
5.6.260.0120.02517.09
5.6.250.0150.01917.12
5.6.240.0110.02617.15
5.6.230.0190.02517.14
5.6.220.0130.02517.14
5.6.210.0130.02317.11
5.6.200.0150.02317.14
5.6.190.0140.02417.18
5.6.180.0130.02217.07
5.6.170.0130.02317.19
5.6.160.0130.02417.16
5.6.150.0130.02717.11
5.6.140.0130.02617.14
5.6.130.0150.02317.20
5.6.120.0140.02317.13
5.6.110.0210.02317.04
5.6.100.0300.02617.20
5.6.90.0170.02117.06
5.6.80.0140.02316.84
5.6.70.0150.02216.91
5.6.60.0140.02216.93
5.6.50.0110.02716.87
5.6.40.0220.02316.81
5.6.30.0140.02216.90
5.6.20.0190.02216.83
5.6.10.0120.02316.85
5.6.00.0130.02216.87

preferences:
38.01 ms | 403 KiB | 5 Q