3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expected = [ ['john', 'doe', 'john.doe@example.com', '0123456789'], ['jane', 'doe', 'jane.doe@example.com'], ]; $tmp = new SplTempFileObject(); foreach ($expected as $row) { $tmp->fputcsv($row); } $tmp->setFlags(0); $tmp->seek(23); var_dump($tmp->current()); $tmp->setFlags(SplFileObject::READ_CSV); $tmp->seek(23); var_dump($tmp->current());

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.60.0100.01018.30
8.3.50.0150.00018.08
8.3.40.0070.00718.46
8.3.30.0040.01118.58
8.3.20.0050.00318.48
8.3.10.0070.01123.65
8.3.00.0040.00419.78
8.2.180.0040.01118.64
8.2.170.0120.00322.96
8.2.160.0070.00722.32
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.04
8.2.120.0030.00526.35
8.2.110.0070.00321.07
8.2.100.0000.01217.72
8.2.90.0050.00317.63
8.2.80.0030.00618.77
8.2.70.0030.00617.93
8.2.60.0040.00417.93
8.2.50.0050.00318.16
8.2.40.0040.00422.15
8.2.30.0070.00019.47
8.2.20.0070.00017.99
8.2.10.0030.00618.16
8.2.00.0070.00018.27
8.1.280.0110.00425.92
8.1.270.0040.00420.37
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0120.00317.36
8.1.230.0080.00420.97
8.1.220.0030.00618.71
8.1.210.0040.00418.77
8.1.200.0080.00017.23
8.1.190.0040.00417.41
8.1.180.0050.00318.10
8.1.170.0000.00718.96
8.1.160.0030.00518.91
8.1.150.0000.00720.28
8.1.140.0000.00817.63
8.1.130.0000.00718.91
8.1.120.0000.00717.52
8.1.110.0000.00717.44
8.1.100.0040.00417.35
8.1.90.0070.00017.40
8.1.80.0000.00717.43
8.1.70.0030.00317.52
8.1.60.0000.00817.63
8.1.50.0040.00417.57
8.1.40.0000.00817.54
8.1.30.0040.00417.61
8.1.20.0000.00917.50
8.1.10.0000.00817.44
8.1.00.0000.00917.50
8.0.300.0060.00318.77
8.0.290.0060.00316.63
8.0.280.0040.00418.43
8.0.270.0000.01017.33
8.0.260.0000.00716.76
8.0.250.0000.00816.94
8.0.240.0070.00016.97
8.0.230.0040.00416.86
8.0.220.0000.00716.95
8.0.210.0000.00716.88
8.0.200.0030.00316.97
8.0.190.0050.00316.96
8.0.180.0070.00016.91
8.0.170.0070.00316.96
8.0.160.0040.00417.00
8.0.150.0090.00016.90
8.0.140.0040.00416.89
8.0.130.0060.00013.36
8.0.120.0040.00416.89
8.0.110.0020.00616.88
8.0.100.0040.00416.93
8.0.90.0030.00516.85
8.0.80.0070.00316.90
8.0.70.0010.00616.89
8.0.60.0030.00416.88
8.0.50.0020.00516.81
8.0.30.0080.00617.07
8.0.20.0080.00917.33
8.0.10.0040.00317.09
8.0.00.0070.00916.87
7.4.330.0050.00015.55
7.4.320.0060.00016.52
7.4.300.0060.00016.59
7.4.290.0110.00316.50
7.4.280.0040.00416.37
7.4.270.0000.00816.63
7.4.260.0030.00316.54
7.4.250.0030.00516.48
7.4.240.0050.00216.53
7.4.230.0020.00516.50
7.4.220.0040.00416.58
7.4.210.0040.00716.57
7.4.200.0040.00416.52
7.4.190.0070.00016.57
7.4.180.0000.00716.48
7.4.160.0100.00416.50
7.4.150.0060.00616.96
7.4.140.0090.00717.59
7.4.130.0090.00316.38
7.4.120.0080.00716.47
7.4.110.0060.00816.41
7.4.100.0080.00616.54
7.4.90.0050.01016.43
7.4.80.0090.00817.34
7.4.70.0100.00616.47
7.4.60.0080.00816.42
7.4.50.0070.00916.46
7.4.40.0070.00816.35
7.4.30.0060.01216.36
7.4.20.0070.00916.35
7.4.10.0050.01016.42
7.4.00.0070.00815.68
7.3.330.0000.00613.03
7.3.320.0030.00313.09
7.3.310.0030.00316.23
7.3.300.0040.00316.24
7.3.290.0060.00816.33
7.3.280.0070.00716.28
7.3.270.0040.00816.87
7.3.260.0060.01016.34
7.3.250.0080.00716.40
7.3.240.0110.00416.32
7.3.230.0070.00716.43
7.3.220.0090.00516.35
7.3.210.0080.00816.34
7.3.200.0060.01116.31
7.3.190.0070.00916.28
7.3.180.0090.00616.13
7.3.170.0090.00916.25
7.3.160.0080.00816.25
7.3.150.0090.00716.16
7.3.140.0050.00816.20
7.3.130.0070.00816.34
7.3.120.0090.00815.79
7.3.110.0120.00515.83
7.3.100.0090.00815.85
7.3.90.0080.00815.83
7.3.80.0120.00515.83
7.3.70.0100.00615.72
7.3.60.0100.00715.74
7.3.50.0100.00715.81
7.3.40.0090.00715.74
7.3.30.0040.01215.80
7.3.20.0100.00816.38
7.3.10.0130.00516.31
7.3.00.0110.00716.40
7.2.340.0080.00716.70
7.2.330.0060.01016.61
7.2.320.0070.00916.45
7.2.310.0070.01216.54
7.2.300.0110.00816.52
7.2.290.0090.00916.61
7.2.280.0070.00916.46
7.2.270.0090.00616.59
7.2.260.0080.00616.43
7.2.250.0060.01116.05
7.2.240.0100.00715.84
7.2.230.0090.00815.95
7.2.220.0110.00515.86
7.2.210.0070.00915.95
7.2.200.0100.00515.89
7.2.190.0080.00915.99
7.2.180.0090.00915.96
7.2.170.0080.00915.92
7.2.160.0090.00815.95
7.2.150.0110.00616.68
7.2.140.0060.01116.60
7.2.130.0130.00616.68
7.2.120.0080.01316.59
7.2.110.0090.00916.59
7.2.100.0110.00416.60
7.2.90.0130.00416.56
7.2.80.0090.00716.67
7.2.70.0060.01216.54
7.2.60.0070.00916.62
7.2.50.0080.00816.54
7.2.40.0080.00816.72
7.2.30.0080.00816.65
7.2.20.0130.00817.01
7.2.10.0110.00916.86
7.2.00.0120.00816.87
7.1.330.0080.00815.54
7.1.320.0070.00915.62
7.1.310.0100.00715.52
7.1.300.0070.00915.46
7.1.290.0090.01015.68
7.1.280.0100.00615.54
7.1.270.0490.00515.71
7.1.260.0110.00615.57
7.1.250.0070.01115.47
7.1.240.0090.00915.59
7.1.230.0110.00615.56
7.1.220.0080.00815.54
7.1.210.0110.00715.59
7.1.200.0060.01015.63
7.1.190.0080.01015.65
7.1.180.0090.00715.45
7.1.170.0080.00915.47
7.1.160.0100.00715.52
7.1.150.0090.00715.54
7.1.140.0130.00615.78
7.1.130.0200.00715.82
7.1.120.0140.00715.84
7.1.110.0210.00515.79
7.1.100.0110.00815.66
7.1.90.0120.00915.71
7.1.80.0140.00715.72
7.1.70.0140.00815.56
7.1.60.0180.00520.04
7.1.50.0230.00819.97
7.1.40.0190.00919.82
7.1.30.0150.00719.84
7.1.20.0150.00919.89
7.1.10.0130.00715.42
7.1.00.0120.00915.31
7.0.330.0080.00815.17
7.0.320.0050.01015.30
7.0.310.0120.00715.13
7.0.300.0080.00715.35
7.0.290.0240.00515.25
7.0.280.0090.00715.27
7.0.270.0110.00515.30
7.0.260.0320.00715.29
7.0.250.0100.00515.25
7.0.240.0080.00715.31
7.0.230.0070.00915.38
7.0.220.0090.00515.21
7.0.210.0070.00915.29
7.0.200.0060.00715.25
7.0.190.0100.00615.34
7.0.180.0080.00915.36
7.0.170.0110.00615.34
7.0.160.0090.00515.22
7.0.150.0090.00615.33
7.0.140.0080.00715.06
7.0.130.0090.00615.31
7.0.120.0080.00615.42
7.0.110.0120.00415.24
7.0.100.0090.01015.26
7.0.90.0100.00515.21
7.0.80.0020.01315.32
7.0.70.0060.00815.21
7.0.60.0060.01115.21
7.0.50.0070.00815.17
7.0.40.0100.00515.22
7.0.30.0100.00715.18
7.0.20.0050.00915.11
7.0.10.0130.00415.25
7.0.00.0090.00715.27
5.6.400.0110.01015.42
5.6.390.0140.00615.21
5.6.380.0060.01115.45
5.6.370.0110.00615.43
5.6.360.0080.00915.33
5.6.350.0040.01215.17
5.6.340.0110.00515.31
5.6.330.0090.00815.42
5.6.320.0070.00915.30
5.6.310.0100.00515.28
5.6.300.0100.00615.37
5.6.290.0110.00515.29
5.6.280.0090.00615.49
5.6.270.0090.00615.29
5.6.260.0070.00915.33
5.6.250.0090.00715.26
5.6.240.0100.00615.33
5.6.230.0080.00615.35
5.6.220.0050.01015.36
5.6.210.0060.00915.40
5.6.200.0080.00715.15
5.6.190.0100.00615.44
5.6.180.0100.00715.34
5.6.170.0040.01115.31
5.6.160.0080.00915.38
5.6.150.0070.01115.42
5.6.140.0100.00815.37
5.6.130.0100.00515.44
5.6.120.0070.00815.39
5.6.110.0080.00715.35
5.6.100.0080.00715.32
5.6.90.0110.00615.27
5.6.80.0090.00915.31
5.6.70.0090.00615.19
5.6.60.0090.00615.33
5.6.50.0090.00815.23
5.6.40.0080.00915.28
5.6.30.0090.00515.12
5.6.20.0050.00915.22
5.6.10.0050.00915.36
5.6.00.0120.00215.22

preferences:
39.77 ms | 401 KiB | 5 Q