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.20.0150.00617.69
8.4.10.0030.00619.62
8.3.150.0100.01017.02
8.3.140.0050.00818.19
8.3.130.0120.00616.39
8.3.120.0100.00717.86
8.3.110.0050.00320.94
8.3.100.0050.00316.62
8.3.90.0050.00226.77
8.3.80.0090.00018.42
8.3.70.0070.01018.43
8.3.60.0110.00716.63
8.3.50.0110.00616.53
8.3.40.0000.01418.73
8.3.30.0090.00618.52
8.3.20.0080.00020.16
8.3.10.0060.00322.01
8.3.00.0030.00523.70
8.2.270.0090.00617.25
8.2.260.0110.00716.98
8.2.250.0000.00818.23
8.2.240.0040.00417.18
8.2.230.0110.00722.58
8.2.220.0030.00624.06
8.2.210.0030.00526.77
8.2.200.0060.00316.75
8.2.190.0140.00716.88
8.2.180.0140.00718.17
8.2.170.0070.00719.09
8.2.160.0140.00322.96
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00420.94
8.2.110.0050.00520.96
8.2.100.0090.00417.89
8.2.90.0060.00318.02
8.2.80.0000.01018.05
8.2.70.0040.00417.93
8.2.60.0030.00618.16
8.2.50.0050.00318.10
8.2.40.0000.00818.21
8.2.30.0050.00518.39
8.2.20.0060.00418.52
8.2.10.0090.00418.49
8.2.00.0060.00618.49
8.1.310.0070.01018.53
8.1.300.0090.01017.24
8.1.290.0030.00730.84
8.1.280.0110.00425.92
8.1.270.0030.00518.88
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00317.35
8.1.230.0080.00421.04
8.1.220.0000.00917.74
8.1.210.0000.00719.07
8.1.200.0000.01117.23
8.1.190.0050.00517.35
8.1.180.0060.00318.10
8.1.170.0060.00618.50
8.1.160.0070.00320.33
8.1.150.0070.00618.84
8.1.140.0080.00319.15
8.1.130.0050.00518.11
8.1.120.0030.00618.00
8.1.110.0090.00318.04
8.1.100.0080.00418.07
8.1.90.0080.00418.05
8.1.80.0050.00718.11
8.1.70.0080.00418.04
8.1.60.0060.00718.26
8.1.50.0080.00518.16
8.1.40.0070.00618.25
8.1.30.0070.00518.20
8.1.20.0070.00718.26
8.1.10.0060.00718.05
8.1.00.0050.00818.07
8.0.300.0000.00719.65
8.0.290.0000.00816.75
8.0.280.0070.00418.29
8.0.270.0070.00517.46
8.0.260.0050.00517.38
8.0.250.0060.00517.63
8.0.240.0040.00817.60
8.0.230.0050.00617.56
8.0.220.0050.00717.49
8.0.210.0050.00517.56
8.0.200.0080.00517.63
8.0.190.0030.00817.54
8.0.180.0090.00217.54
8.0.170.0080.00417.53
8.0.160.0050.00617.63
8.0.150.0030.00817.35
8.0.140.0040.00717.40
8.0.130.0050.00515.68
8.0.120.0040.00717.45
8.0.110.0060.00417.49
8.0.100.0080.00317.50
8.0.90.0050.00517.55
8.0.80.0070.00717.49
8.0.70.0060.00517.46
8.0.60.0070.00417.47
8.0.50.0050.00617.54
8.0.30.0110.00817.32
8.0.20.0080.01117.45
8.0.10.0110.00717.51
8.0.00.0100.00817.12
7.4.330.0030.00216.14
7.4.320.0030.00917.10
7.4.300.0040.00717.05
7.4.290.0070.00417.16
7.4.280.0110.00017.12
7.4.270.0060.00517.09
7.4.260.0090.00217.08
7.4.250.0100.00317.16
7.4.240.0100.00117.26
7.4.230.0070.00517.03
7.4.220.0090.00717.18
7.4.210.0120.00817.05
7.4.200.0080.00317.12
7.4.190.0130.00017.85
7.4.180.0070.00717.75
7.4.160.0090.00616.88
7.4.150.0110.00617.25
7.4.140.0100.00917.57
7.4.130.0110.01016.80
7.4.120.0140.00716.69
7.4.110.0120.00816.86
7.4.100.0150.00516.83
7.4.90.0130.00816.73
7.4.80.0110.01217.30
7.4.70.0120.00816.73
7.4.60.0130.00716.60
7.4.50.0110.01016.63
7.4.40.0120.00816.65
7.4.30.0120.00716.70
7.4.20.0130.00716.66
7.4.10.0120.00716.72
7.4.00.0070.01016.23
7.3.330.0060.00415.23
7.3.320.0040.00515.16
7.3.310.0060.00516.81
7.3.300.0070.00316.87
7.3.290.0070.00316.85
7.3.280.0080.00916.39
7.3.270.0090.00716.98
7.3.260.0100.00716.67
7.3.250.0110.00916.56
7.3.240.0130.00616.48
7.3.230.0140.00716.53
7.3.220.0130.00716.66
7.3.210.0100.01016.49
7.3.200.0120.00616.58
7.3.190.0120.00716.41
7.3.180.0140.00616.56
7.3.170.0130.00716.47
7.3.160.0100.00916.42
7.3.150.0100.01016.44
7.3.140.0170.00616.49
7.3.130.0120.00716.46
7.3.120.0120.00716.18
7.3.110.0120.00916.27
7.3.100.0130.00615.81
7.3.90.0110.00715.79
7.3.80.0120.00815.84
7.3.70.0150.00815.69
7.3.60.0110.00715.72
7.3.50.0130.00615.67
7.3.40.0100.00815.66
7.3.30.0110.00615.63
7.3.20.0400.00716.28
7.3.10.0350.00616.22
7.3.00.0200.00916.30
7.2.340.0140.00716.65
7.2.330.0160.00616.70
7.2.320.0130.00816.74
7.2.310.0130.00916.70
7.2.300.0140.00616.67
7.2.290.0130.00816.67
7.2.280.0140.00516.65
7.2.270.0130.00816.60
7.2.260.0110.01016.71
7.2.250.0110.00916.36
7.2.240.0120.01116.35
7.2.230.0100.00916.45
7.2.220.0190.00916.04
7.2.210.0100.01015.96
7.2.200.0180.00815.91
7.2.190.0130.00615.89
7.2.180.0160.00815.85
7.2.170.0130.00715.94
7.2.160.0310.00815.98
7.2.150.0230.00616.47
7.2.140.0310.00716.52
7.2.130.0300.00816.47
7.2.120.0470.01116.49
7.2.110.0320.00916.57
7.2.100.0380.00716.51
7.2.90.0270.01016.53
7.2.80.0250.01016.44
7.2.70.0370.00916.50
7.2.60.0370.00616.53
7.2.50.0290.01016.62
7.2.40.0240.00716.58
7.2.30.0200.00916.82
7.2.20.0280.00916.83
7.2.10.0290.00816.85
7.2.00.0250.00916.89
7.1.330.0200.00816.01
7.1.320.0290.00815.39
7.1.310.0260.00915.41
7.1.300.0340.00615.43
7.1.290.0290.00915.46
7.1.280.0230.00615.45
7.1.270.0220.00915.47
7.1.260.0210.00815.44
7.1.250.0280.00715.28
7.1.240.0370.01115.39
7.1.230.0240.00915.64
7.1.220.0360.01015.34
7.1.210.0240.01015.38
7.1.200.0240.00715.37
7.1.190.0380.00915.32
7.1.180.0260.00715.40
7.1.170.0280.00815.31
7.1.160.0280.00515.45
7.1.150.0570.00815.58
7.1.140.0270.00815.61
7.1.130.0390.00915.82
7.1.120.0280.01015.73
7.1.110.0360.00715.58
7.1.100.0300.00815.61
7.1.90.0280.00815.54
7.1.80.0240.00915.63
7.1.70.0200.00815.47
7.1.60.0240.00820.94
7.1.50.0220.00920.80
7.1.40.0250.01220.71
7.1.30.0240.01120.74
7.1.20.0250.01120.74
7.1.10.0180.01015.37
7.1.00.0180.00815.32
7.0.330.0300.00615.04
7.0.320.0270.00715.05
7.0.310.0310.00915.05
7.0.300.0310.00915.08
7.0.290.0300.01115.15
7.0.280.0290.00715.16
7.0.270.0260.00815.39
7.0.260.0240.01015.42
7.0.250.0300.00715.25
7.0.240.0280.00715.31
7.0.230.0320.00915.28
7.0.220.0250.00915.36
7.0.210.0170.01015.23
7.0.200.0180.00815.18
7.0.190.0180.00915.14
7.0.180.0200.00815.00
7.0.170.0400.00815.08
7.0.160.0210.00815.07
7.0.150.0190.01014.99
7.0.140.0260.00815.03
7.0.130.0130.00915.12
7.0.120.0160.01115.22
7.0.110.0170.00815.10
7.0.100.0160.00915.12
7.0.90.0300.00915.04
7.0.80.0160.00715.01
7.0.70.0160.00815.02
7.0.60.0150.00715.26
7.0.50.0180.00815.02
7.0.40.0130.00815.13
7.0.30.0210.00815.15
7.0.20.0240.00715.07
7.0.10.0210.00915.12
7.0.00.0170.00915.03
5.6.400.0230.00915.45
5.6.390.0140.01015.36
5.6.380.0400.00815.37
5.6.370.0210.01115.51
5.6.360.0520.01115.52
5.6.350.0120.00815.56
5.6.340.0370.00515.56
5.6.330.0130.00915.56
5.6.320.0110.00915.56
5.6.310.0110.01115.75
5.6.300.0170.02617.36
5.6.290.0130.02717.40
5.6.280.0250.02717.46
5.6.270.0140.03017.48
5.6.260.0120.03017.42
5.6.250.0150.02317.48
5.6.240.0110.03017.46
5.6.230.0200.03017.45
5.6.220.0130.02917.43
5.6.210.0140.02717.45
5.6.200.0150.02717.47
5.6.190.0150.02917.48
5.6.180.0130.02617.41
5.6.170.0140.02717.50
5.6.160.0130.02917.45
5.6.150.0140.03217.44
5.6.140.0140.03117.45
5.6.130.0150.02817.50
5.6.120.0150.02717.46
5.6.110.0240.02717.39
5.6.100.0350.03117.49
5.6.90.0180.02517.41
5.6.80.0150.02817.12
5.6.70.0150.02717.20
5.6.60.0140.02617.20
5.6.50.0110.03217.19
5.6.40.0240.02817.11
5.6.30.0140.02617.20
5.6.20.0200.02617.14
5.6.10.0130.02717.16
5.6.00.0130.02717.15

preferences:
94.4 ms | 403 KiB | 5 Q