3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = new SplTempFileObject(); $file->fwrite("foo,bar\n"); $file->fwrite("\n"); $file->fwrite("baz,qux"); $file->rewind(); $file->setFlags(SplFileObject::READ_CSV | SplFileObject::READ_AHEAD | SplFileObject::SKIP_EMPTY /* | SplFileObject::DROP_NEW_LINE */); foreach ($file as $line) { var_dump($line); }

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.5.00.0130.00820.18
8.4.150.0020.00014.05
8.4.140.0120.01017.41
8.4.130.0120.00820.26
8.4.120.0110.00924.17
8.4.110.0130.00723.98
8.4.100.0060.00317.81
8.4.90.0110.00820.59
8.4.80.0150.00518.86
8.4.70.0070.01320.71
8.4.60.0120.00720.70
8.4.50.0130.00818.53
8.4.40.0000.00817.59
8.4.30.0070.01020.43
8.4.20.0100.01017.77
8.4.10.0160.00023.60
8.3.280.0120.00918.27
8.3.270.0120.00816.38
8.3.260.0100.00916.71
8.3.250.0100.00918.81
8.3.240.0120.00717.17
8.3.230.0130.00916.46
8.3.220.0090.01019.05
8.3.210.0060.00216.55
8.3.200.0040.00616.54
8.3.190.0080.01117.16
8.3.180.0060.01218.86
8.3.170.0170.00317.04
8.3.160.0060.00316.73
8.3.150.0100.01016.74
8.3.140.0120.00616.73
8.3.130.0040.00418.30
8.3.120.0000.00819.03
8.3.110.0040.01116.48
8.3.100.0100.00616.49
8.3.90.0110.00726.77
8.3.80.0080.00416.38
8.3.70.0150.00616.58
8.3.60.0090.00618.43
8.3.50.0140.00019.95
8.3.40.0140.00020.36
8.3.30.0060.00918.70
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.290.0060.00516.99
8.2.280.0100.01018.16
8.2.270.0110.00816.86
8.2.260.0030.00517.44
8.2.250.0030.00618.44
8.2.240.0160.00316.57
8.2.230.0000.00920.94
8.2.220.0030.00624.06
8.2.210.0080.00026.77
8.2.200.0110.00016.38
8.2.190.0120.00616.58
8.2.180.0040.01825.92
8.2.170.0100.00518.73
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0020.00524.66
8.2.130.0040.00426.16
8.2.120.0000.00720.75
8.2.110.0040.00420.94
8.2.100.0080.00417.72
8.2.90.0050.00318.16
8.2.80.0080.00017.97
8.2.70.0090.00017.63
8.2.60.0040.00417.50
8.2.50.0040.00417.98
8.2.40.0040.00418.21
8.2.30.0050.00217.96
8.2.20.0040.00420.46
8.2.10.0040.00418.06
8.2.00.0030.00619.27
8.1.330.0080.01016.14
8.1.320.0120.00616.40
8.1.310.0080.00018.56
8.1.300.0090.00617.87
8.1.290.0090.00030.84
8.1.280.0110.00725.92
8.1.270.0090.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.00021.98
8.1.230.0060.00620.98
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0000.00817.22
8.1.180.0030.00618.10
8.1.170.0040.00417.62
8.1.160.0040.00418.82
8.1.150.0040.00418.71
8.1.140.0000.00817.37
8.1.130.0060.00318.90
8.1.120.0030.00517.37
8.1.110.0040.00417.39
8.1.100.0040.00417.38
8.1.90.0050.00217.36
8.1.80.0000.00717.45
8.1.70.0070.00017.48
8.1.60.0030.00717.54
8.1.50.0110.00017.43
8.1.40.0040.00717.55
8.1.30.0110.00017.55
8.1.20.0110.00017.02
8.1.10.0110.00017.50
8.1.00.0080.00416.94
8.0.300.0030.00319.98
8.0.290.0030.00516.63
8.0.280.0040.00418.39
8.0.270.0000.00716.84
8.0.260.0000.00718.46
8.0.250.0000.00817.01
8.0.240.0040.00416.91
8.0.230.0040.00416.88
8.0.220.0000.00716.82
8.0.210.0030.00316.95
8.0.200.0050.00216.95
8.0.190.0100.00016.94
8.0.180.0030.00816.72
8.0.170.0070.00516.63
8.0.160.0110.00016.39
8.0.150.0000.01116.67
8.0.140.0050.00516.71
8.0.130.0080.00316.73
8.0.120.0060.00616.56
8.0.110.0080.00416.77
8.0.100.0080.00316.91
8.0.90.0030.00916.78
8.0.80.0100.00516.77
8.0.70.0140.00216.75
8.0.60.0140.00016.84
8.0.50.0140.00016.86
8.0.30.0050.00516.75
8.0.20.0050.00516.66
8.0.10.0040.00716.86
7.4.330.0030.00315.55
7.4.320.0060.00016.61
7.4.300.0000.00816.66
7.4.290.0030.00816.04
7.4.280.0080.00316.33
7.4.270.0110.00016.39
7.4.260.0050.00516.32
7.4.250.0080.00416.55
7.4.240.0080.00416.56
7.4.230.0090.00516.40
7.4.220.0020.01016.48
7.4.210.0100.00416.52
7.4.200.0090.00216.51
7.4.190.0000.01216.16
7.4.180.0090.00316.65
7.4.160.0110.00216.60
7.4.150.0060.00616.54
7.4.140.0070.00716.43
7.4.130.0030.01216.44
7.4.120.0080.00516.32
7.4.110.0090.00316.32
7.4.100.0130.00016.15
7.4.90.0150.00015.98
7.4.80.0100.00316.31
7.4.70.0090.00416.17
7.4.60.0060.00616.45
7.4.50.0070.00716.16
7.4.40.0080.00415.95
7.4.30.0040.01116.32
7.4.20.0080.00416.51
7.4.10.0050.00516.33
7.4.00.0070.00516.33

preferences:
39.92 ms | 403 KiB | 5 Q