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 | SplFileObject::SKIP_EMPTY); $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.40.0160.00318.67
8.3.30.0070.00718.57
8.3.20.0040.00420.28
8.3.10.0150.00323.61
8.3.00.0040.00419.72
8.2.170.0040.01122.96
8.2.160.0030.01022.05
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0080.00020.96
8.2.120.0000.00726.35
8.2.110.0030.00622.15
8.2.100.0080.00417.91
8.2.90.0060.00322.15
8.2.80.0080.00017.97
8.2.70.0060.00317.80
8.2.60.0070.00318.16
8.2.50.0000.00918.10
8.2.40.0030.00622.27
8.2.30.0000.00719.54
8.2.20.0050.00218.08
8.2.10.0050.00218.01
8.2.00.0070.00018.25
8.1.270.0050.00320.27
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0120.00622.42
8.1.230.0080.00320.95
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0050.00319.05
8.1.160.0040.00418.91
8.1.150.0040.00420.21
8.1.140.0000.00717.64
8.1.130.0000.00719.04
8.1.120.0000.00817.45
8.1.110.0040.00417.36
8.1.100.0000.00817.36
8.1.90.0040.00417.39
8.1.80.0080.00017.47
8.1.70.0000.00717.41
8.1.60.0030.00517.64
8.1.50.0040.00417.55
8.1.40.0040.00417.51
8.1.30.0060.00317.61
8.1.20.0040.00317.63
8.1.10.0040.00417.49
8.1.00.0050.00317.35
8.0.300.0030.00619.89
8.0.290.0040.00416.63
8.0.280.0030.00318.38
8.0.270.0000.00716.85
8.0.260.0000.00716.78
8.0.250.0050.00316.87
8.0.240.0000.00717.00
8.0.230.0080.00016.85
8.0.220.0080.00016.90
8.0.210.0040.00416.87
8.0.200.0060.00017.00
8.0.190.0060.00316.97
8.0.180.0030.00316.94
8.0.170.0030.00616.82
8.0.160.0070.00016.91
8.0.150.0050.00616.86
8.0.140.0040.00416.80
8.0.130.0040.00315.05
8.0.120.0030.00516.78
8.0.110.0010.00616.84
8.0.100.0060.00216.77
8.0.90.0060.00216.88
8.0.80.0040.00816.83
8.0.70.0040.00416.90
8.0.60.0020.00516.91
8.0.50.0040.00416.82
8.0.30.0070.00817.01
8.0.20.0110.01117.32
8.0.10.0040.00316.98
8.0.00.0100.00516.83
7.4.330.0030.00315.55
7.4.320.0030.00316.53
7.4.300.0000.00616.51
7.4.290.0060.00316.52
7.4.280.0040.00416.53
7.4.270.0060.00216.56
7.4.260.0000.00716.49
7.4.250.0030.00516.53
7.4.240.0030.00416.47
7.4.230.0040.00316.55
7.4.220.0060.00116.43
7.4.210.0070.00516.64
7.4.200.0030.00516.53
7.4.190.0030.00316.66
7.4.180.0070.00016.57
7.4.160.0060.00516.56
7.4.150.0060.00617.02
7.4.140.0110.00517.58
7.4.130.0020.01016.44
7.4.120.0080.00716.51
7.4.110.0020.01016.47
7.4.100.0050.00716.52
7.4.90.0030.00916.42
7.4.80.0040.01117.82
7.4.70.0030.01216.37
7.4.60.0100.00216.48
7.4.50.0050.00716.35
7.4.40.0090.00616.24
7.4.30.0030.00516.52
7.4.20.0030.00316.32
7.4.10.0030.00915.58
7.4.00.0060.00815.30
7.3.330.0100.00214.62
7.3.320.0090.00514.72
7.3.310.0080.00716.13
7.3.300.0110.00416.31
7.3.290.0100.00616.30
7.3.280.0070.01116.28
7.3.270.0110.00816.75
7.3.260.0100.01016.34
7.3.250.0120.00616.39
7.3.240.0150.00416.37
7.3.230.0160.00216.35
7.3.220.0160.00316.21
7.3.210.0140.00416.36
7.3.200.0110.01616.30
7.3.190.0090.00916.26
7.3.180.0100.00816.23
7.3.170.0090.00816.44
7.3.160.0120.00816.13
7.3.150.0160.00316.04
7.3.140.0200.00016.16
7.3.130.0050.01415.56
7.3.120.0100.00915.50
7.3.110.0120.00815.41
7.3.100.0130.00315.54
7.3.90.0080.01015.63
7.3.80.0100.00715.42
7.3.70.0080.00615.56
7.3.60.0070.00715.46
7.3.50.0080.00715.50
7.3.40.0120.00315.57
7.3.30.0110.00615.41
7.3.20.0140.00317.48
7.3.10.0080.00817.15
7.3.00.0120.00517.13
7.2.340.0100.01016.41
7.2.330.0120.00616.61
7.2.320.0190.00316.49
7.2.310.0130.00416.53
7.2.300.0120.00616.60
7.2.290.0080.01016.49
7.2.280.0190.00016.27
7.2.270.0140.00516.20
7.2.260.0110.00715.72
7.2.250.0120.00515.81
7.2.240.0140.00415.84
7.2.230.0110.00615.82
7.2.220.0120.00615.64
7.2.210.0150.00315.70
7.2.200.0140.00315.81
7.2.190.0100.00515.78
7.2.180.0050.01015.88
7.2.170.0090.00815.82
7.2.160.0060.01015.82
7.2.150.0130.00517.60
7.2.140.0100.00917.70
7.2.130.0090.00717.42
7.2.120.0080.00817.37
7.2.110.0080.01117.31
7.2.100.0080.00617.47
7.2.90.0110.00517.44
7.2.80.0100.00717.42
7.2.70.0070.01117.37
7.2.60.0100.00617.20
7.2.50.0050.01017.39
7.2.40.0070.00817.54
7.2.30.0090.00917.49
7.2.20.0130.01117.57
7.2.10.0170.00517.59
7.2.00.0230.00717.51
7.1.330.0120.00616.54
7.1.320.0050.01216.53
7.1.310.0140.00216.42
7.1.300.0080.00616.43
7.1.290.0080.00816.30
7.1.280.0080.00616.52
7.1.270.0120.00316.55
7.1.260.0070.01016.50
7.1.250.0090.00716.20
7.1.240.0100.00616.54
7.1.230.0070.00716.56
7.1.220.0120.00216.52
7.1.210.0100.00716.40
7.1.200.0080.00516.25
7.1.190.0080.00916.51
7.1.180.0080.00616.40
7.1.170.0110.00416.61
7.1.160.0060.01216.48
7.1.150.0090.00616.44
7.1.140.0170.01116.63
7.1.130.0150.00816.55
7.1.120.0180.00416.59
7.1.110.0140.00916.50
7.1.100.0180.00616.40
7.1.90.0220.00716.43
7.1.80.0180.00616.28
7.1.70.0170.00616.07
7.1.60.0200.01121.88
7.1.50.0200.00921.99
7.1.40.0200.00821.76
7.1.30.0210.01021.93
7.1.20.0200.01421.83
7.1.10.0200.00415.95
7.1.00.0260.00815.88
7.0.330.0120.00416.32
7.0.320.0080.00416.20
7.0.310.0100.00316.30
7.0.300.0110.00416.02
7.0.290.0120.00516.15
7.0.280.0110.00516.13
7.0.270.0090.00616.23
7.0.260.0090.00616.21
7.0.250.0170.00016.39
7.0.240.0050.00916.37
7.0.230.0100.00616.18
7.0.220.0070.00716.29
7.0.210.0070.00916.14
7.0.200.0120.00316.10
7.0.190.0130.00316.31
7.0.180.0100.00516.28
7.0.170.0090.00716.36
7.0.160.0100.00516.19
7.0.150.0130.00316.05
7.0.140.0060.01116.26
7.0.130.0150.00216.31
7.0.120.0090.00816.22
7.0.110.0070.00616.12
7.0.100.0120.00316.01
7.0.90.0080.00816.08
7.0.80.0100.00516.16
7.0.70.0060.00916.15
7.0.60.0120.00316.27
7.0.50.0080.00516.27
7.0.40.0090.00515.34
7.0.30.0090.00515.37
7.0.20.0110.00215.22
7.0.10.0060.00615.07
7.0.00.0090.00715.34
5.6.400.0100.00414.81
5.6.390.0090.00815.07
5.6.380.0060.00614.88
5.6.370.0110.00514.86
5.6.360.0070.00614.93
5.6.350.0050.00915.10
5.6.340.0090.00615.17
5.6.330.0100.00515.12
5.6.320.0120.00415.07
5.6.310.0100.00415.04
5.6.300.0100.00514.91
5.6.290.0070.00915.04
5.6.280.0100.00515.17
5.6.270.0130.00215.12
5.6.260.0090.00815.08
5.6.250.0100.00715.04
5.6.240.0080.00815.27
5.6.230.0070.00615.14
5.6.220.0130.00315.11
5.6.210.0080.00714.91
5.6.200.0160.00015.06
5.6.190.0090.00615.18
5.6.180.0110.00315.02
5.6.170.0110.00414.96
5.6.160.0100.00515.17
5.6.150.0120.00215.10
5.6.140.0100.00414.91
5.6.130.0080.00415.13
5.6.120.0060.00715.09
5.6.110.0040.01115.10
5.6.100.0130.00215.09
5.6.90.0110.00215.08
5.6.80.0100.00515.06
5.6.70.0090.00615.14
5.6.60.0100.00614.90
5.6.50.0080.00615.03
5.6.40.0070.00815.02
5.6.30.0100.00214.95
5.6.20.0100.00215.06
5.6.10.0090.00314.84
5.6.00.0100.00414.93

preferences:
65.09 ms | 400 KiB | 5 Q