3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = <<<'EOF' Line 1 Line 2 Line 3 Line 4 EOF; $tmpCsvFile = new SplTempFileObject(); $tmpCsvFile->fwrite($content); $iterator = new CallbackFilterIterator($tmpCsvFile, function ($row) { return true; }); echo 'l1: ', iterator_count(new LimitIterator($iterator, 2)), ' ', iterator_count(new LimitIterator($tmpCsvFile, 2)), "\n"; echo 'l2: ', iterator_count(new LimitIterator($iterator, 3)), ' ', iterator_count(new LimitIterator($tmpCsvFile, 3)), "\n";

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.0090.00616.38
8.3.50.0080.01322.83
8.3.40.0140.00018.67
8.3.30.0090.00618.92
8.3.20.0080.00020.29
8.3.10.0040.00423.57
8.3.00.0080.00019.26
8.2.180.0040.01516.75
8.2.170.0140.00022.96
8.2.160.0060.01320.51
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00420.90
8.2.110.0030.00622.16
8.2.100.0060.00617.84
8.2.90.0030.00517.84
8.2.80.0050.00319.15
8.2.70.0050.00317.93
8.2.60.0040.00717.61
8.2.50.0040.00417.63
8.2.40.0050.00319.22
8.2.30.0050.00319.80
8.2.20.0050.00317.61
8.2.10.0040.00418.03
8.2.00.0040.00417.83
8.1.280.0110.00625.92
8.1.270.0040.00422.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.84
8.1.230.0090.00322.81
8.1.220.0040.00417.78
8.1.210.0060.00318.77
8.1.200.0000.00817.35
8.1.190.0080.00317.13
8.1.180.0080.00018.10
8.1.170.0040.00417.62
8.1.160.0030.00622.07
8.1.150.0070.00018.82
8.1.140.0060.00317.50
8.1.130.0040.00417.89
8.1.120.0040.00417.38
8.1.110.0040.00417.48
8.1.100.0050.00217.46
8.1.90.0040.00417.37
8.1.80.0040.00417.45
8.1.70.0030.00517.42
8.1.60.0000.00917.49
8.1.50.0060.00317.57
8.1.40.0030.00617.52
8.1.30.0030.00517.48
8.1.20.0000.00717.69
8.1.10.0000.00817.63
8.1.00.0050.00317.59
8.0.300.0090.00022.08
8.0.290.0090.00016.75
8.0.280.0040.00418.44
8.0.270.0000.00717.25
8.0.260.0030.00317.19
8.0.250.0070.00017.04
8.0.240.0030.00516.89
8.0.230.0000.00716.84
8.0.220.0030.00316.79
8.0.210.0030.00316.81
8.0.200.0060.00017.00
8.0.190.0030.00517.00
8.0.180.0080.00016.94
8.0.170.0000.00816.97
8.0.160.0040.00417.07
8.0.150.0000.00716.91
8.0.140.0040.00416.86
8.0.130.0060.00013.43
8.0.120.0070.00016.81
8.0.110.0040.00417.00
8.0.100.0000.00817.00
8.0.90.0000.00716.79
8.0.80.0170.00317.00
8.0.70.0040.00416.78
8.0.60.0020.00516.86
8.0.50.0040.00416.98
8.0.30.0050.01517.02
8.0.20.0120.00717.40
8.0.10.0030.00516.96
8.0.00.0130.00516.74
7.4.330.0030.00315.02
7.4.320.0000.00616.43
7.4.300.0030.00316.45
7.4.290.0030.00316.61
7.4.280.0040.00416.43
7.4.270.0000.00716.57
7.4.260.0050.00316.63
7.4.250.0080.00016.48
7.4.240.0050.00316.63
7.4.230.0030.00516.32
7.4.220.0060.01216.52
7.4.210.0070.00816.55
7.4.200.0000.00716.67
7.4.160.0110.00516.53
7.4.150.0160.00617.40
7.4.140.0080.00917.86
7.4.130.0100.00816.48
7.4.120.0070.01016.43
7.4.110.0040.01416.71
7.4.100.0130.01016.60
7.4.90.0120.00616.70
7.4.80.0150.00819.39
7.4.70.0070.01016.60
7.4.60.0070.01016.68
7.4.50.0000.00416.41
7.4.40.0080.00816.59
7.4.30.0060.00916.54
7.4.00.0050.01015.04
7.3.330.0030.00313.16
7.3.320.0050.00013.24
7.3.310.0030.00316.33
7.3.300.0030.00316.16
7.3.290.0120.00616.32
7.3.280.0100.00616.30
7.3.270.0090.00917.40
7.3.260.0090.00916.47
7.3.250.0090.00716.44
7.3.240.0120.00916.65
7.3.230.0190.00416.58
7.3.210.0140.00316.54
7.3.200.0070.01019.39
7.3.190.0100.01116.37
7.3.180.0050.01416.38
7.3.170.0120.00416.39
7.3.160.0030.01316.43
7.3.120.0070.01014.75
7.3.110.0090.00614.73
7.3.100.0030.01014.54
7.3.90.0030.01014.44
7.3.80.0060.00314.89
7.3.70.0060.00314.86
7.3.60.0030.00914.92
7.3.50.0070.00714.83
7.3.40.0030.01014.90
7.3.30.0130.00314.84
7.3.20.0000.01516.63
7.3.10.0050.00816.61
7.3.00.0060.00616.47
7.2.330.0120.00616.77
7.2.320.0070.01016.77
7.2.310.0080.00816.53
7.2.300.0030.01416.58
7.2.290.0030.01316.84
7.2.250.0110.00715.25
7.2.240.0070.01115.14
7.2.230.0070.00714.95
7.2.220.0030.01315.33
7.2.210.0100.00314.95
7.2.200.0040.00515.21
7.2.190.0000.01114.93
7.2.180.0060.00314.93
7.2.170.0120.00315.19
7.2.130.0060.00916.48
7.2.120.0070.00716.72
7.2.110.0140.00316.59
7.2.100.0050.00516.66
7.2.90.0070.00716.71
7.2.80.0110.00016.77
7.2.70.0000.01116.74
7.2.60.0060.00616.92
7.2.50.0120.00316.76
7.2.40.0100.00316.82
7.2.30.0030.01316.90
7.2.20.0090.00316.86
7.2.10.0040.00416.85
7.2.00.0000.01216.84
7.1.330.0030.01315.81
7.1.320.0030.00715.85
7.1.310.0030.01015.44
7.1.300.0070.00315.75
7.1.290.0110.00415.82
7.1.280.0080.00615.81
7.1.270.0000.01415.74
7.1.260.0140.00315.55
7.1.250.0030.00615.55
7.1.200.0030.00915.67
7.1.100.0060.00618.25
7.1.70.0080.00817.03
7.1.60.0070.01719.46
7.1.50.0100.01016.63
7.1.00.0070.07322.44
7.0.200.0050.00516.89
7.0.140.0100.06722.07
7.0.80.0030.04019.94
7.0.70.0030.07019.96
7.0.60.0170.07019.83
7.0.50.0100.04320.38
7.0.40.0070.08320.11
7.0.30.0130.07720.14
7.0.20.0000.06720.04
7.0.10.0030.04720.08
7.0.00.0100.07020.02
5.6.280.0070.07020.93
5.6.230.0070.04020.59
5.6.220.0030.03720.58
5.6.210.0070.07720.44
5.6.200.0030.05021.05
5.6.190.0230.05021.05
5.6.180.0000.08021.02
5.6.170.0100.04321.02
5.6.160.0230.04321.05
5.6.150.0100.08021.08
5.6.140.0070.04721.05
5.6.130.0030.05321.04
5.6.120.0130.08721.04
5.6.110.0070.06020.96
5.6.100.0030.08320.98
5.6.90.0000.05021.02
5.6.80.0130.06720.33
5.6.70.0100.05720.40
5.6.60.0070.04320.42
5.6.50.0100.08020.38
5.6.40.0100.08020.53
5.6.30.0130.07720.38
5.6.20.0070.08020.38
5.6.10.0070.05720.46
5.6.00.0100.08020.30
5.5.370.0030.04020.42
5.5.360.0100.07020.50
5.5.350.0000.08720.46
5.5.340.0100.04320.74
5.5.330.0070.05720.84
5.5.320.0100.04020.90
5.5.310.0100.05320.86
5.5.300.0030.08320.93
5.5.290.0070.07720.88
5.5.280.0070.09020.88
5.5.270.0170.08020.75
5.5.260.0030.04720.82
5.5.250.0070.07320.72
5.5.240.0100.05020.30
5.5.230.0100.07720.24
5.5.220.0030.07320.26
5.5.210.0070.04320.23
5.5.200.0130.07320.19
5.5.190.0030.08320.21
5.5.180.0030.08320.16
5.5.160.0000.06720.12
5.5.150.0030.04720.12
5.5.140.0170.07020.25
5.5.130.0030.08020.27
5.5.120.0100.07320.23
5.5.110.0070.05720.25
5.5.100.0170.03020.11
5.5.90.0030.04319.97
5.5.80.0100.07319.95
5.5.70.0000.08019.94
5.5.60.0100.05020.03
5.5.50.0130.03020.08
5.5.40.0030.09019.96
5.5.30.0000.05720.15
5.5.20.0070.08320.14
5.5.10.0030.06020.02
5.5.00.0100.07320.03
5.4.450.0170.07319.42
5.4.440.0070.08019.50
5.4.430.0100.04019.20
5.4.420.0030.07719.20
5.4.410.0100.06319.04
5.4.400.0130.06719.12
5.4.390.0100.07319.16
5.4.380.0030.08319.18
5.4.370.0130.07318.89
5.4.360.0130.07719.02
5.4.350.0000.08319.03
5.4.340.0070.08719.13
5.4.320.0100.07719.18
5.4.310.0030.07319.04
5.4.300.0100.07319.12
5.4.290.0100.06719.09
5.4.280.0030.09318.84
5.4.270.0170.07019.03
5.4.260.0070.07319.16
5.4.250.0000.08319.15
5.4.240.0070.05018.86
5.4.230.0000.08719.12
5.4.220.0130.07718.90
5.4.210.0130.06719.04
5.4.200.0030.06019.02
5.4.190.0130.07019.11
5.4.180.0100.08018.89
5.4.170.0030.08318.84
5.4.160.0030.04318.98
5.4.150.0100.05319.00
5.4.140.0170.04716.42
5.4.130.0130.03716.40
5.4.120.0030.07016.40
5.4.110.0130.06016.47
5.4.100.0100.07016.47
5.4.90.0030.07316.39
5.4.80.0030.06316.46
5.4.70.0100.05316.45
5.4.60.0000.04316.42
5.4.50.0130.06016.48
5.4.40.0070.07016.45
5.4.30.0130.03716.29
5.4.20.0170.06316.33
5.4.10.0200.06016.44
5.4.00.0130.05715.78
5.3.290.0030.05014.59
5.3.280.0030.04714.56
5.3.270.0100.06014.64
5.3.260.0000.06714.63
5.3.250.0100.04714.70
5.3.240.0030.05014.62
5.3.230.0030.07714.65
5.3.220.0100.04714.55
5.3.210.0100.06314.49
5.3.200.0070.07014.52
5.3.190.0030.06314.62
5.3.180.0030.07714.61
5.3.170.0100.06014.54
5.3.160.0030.04314.52
5.3.150.0070.08014.58
5.3.140.0100.04714.59
5.3.130.0100.05714.56
5.3.120.0070.07714.58
5.3.110.0030.07714.50
5.3.100.0030.08013.96
5.3.90.0130.05013.92
5.3.80.0070.07713.95
5.3.70.0100.04014.13
5.3.60.0070.05714.09
5.3.50.0070.07313.97
5.3.40.0030.08014.06
5.3.30.0070.05014.05
5.3.20.0100.06013.71
5.3.10.0070.07313.67
5.3.00.0070.04713.69
5.2.170.0070.06713.52
5.2.160.0000.03313.52
5.2.150.0130.05713.52
5.2.140.0070.04313.52
5.2.130.0030.03013.52
5.2.120.0030.03313.52
5.2.110.0030.06013.52
5.2.100.0000.04013.52
5.2.90.0030.06313.52
5.2.80.0030.04013.52
5.2.70.0100.05313.52
5.2.60.0130.06013.52
5.2.50.0070.04013.52
5.2.40.0000.06313.52
5.2.30.0030.05013.52
5.2.20.0030.04013.52
5.2.10.0070.04713.52
5.2.00.0030.04713.52
5.1.60.0000.04713.52
5.1.50.0070.05313.52
5.1.40.0030.05313.52
5.1.30.0070.02313.52
5.1.20.0070.05013.52
5.1.10.0130.04013.52
5.1.00.0070.05013.52
5.0.50.0070.03013.52
5.0.40.0030.02013.52
5.0.30.0000.06013.52
5.0.20.0070.03013.52
5.0.10.0000.03713.52
5.0.00.0000.04013.52
4.4.90.0030.03713.52
4.4.80.0000.03013.52
4.4.70.0070.02013.52
4.4.60.0070.02313.52
4.4.50.0030.03013.52
4.4.40.0000.04313.52
4.4.30.0000.02013.52
4.4.20.0000.02713.52
4.4.10.0030.03313.52
4.4.00.0000.03713.52
4.3.110.0000.03713.52
4.3.100.0000.03713.52
4.3.90.0000.03713.52
4.3.80.0030.04013.52
4.3.70.0070.02313.52
4.3.60.0000.02013.52
4.3.50.0030.01713.52
4.3.40.0030.05713.52
4.3.30.0000.02713.52
4.3.20.0000.01713.52
4.3.10.0030.01713.52
4.3.00.0000.01713.52

preferences:
41.33 ms | 401 KiB | 5 Q