3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$f = new SplFileObject('/home/a.txt', "w+"); $iterator = new DirectoryIterator('/var'); while($iterator->valid()) { $file = $iterator->current(); echo $iterator->key() . " => " . $file->getFilename() . "\n"; $iterator->next(); }

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.0120.00918.53
8.3.50.0090.00922.07
8.3.40.0190.00018.93
8.3.30.0190.00019.18
8.3.20.0130.00720.20
8.3.10.0150.00323.62
8.3.00.0050.00320.55
8.2.180.0070.01416.50
8.2.170.0100.01022.96
8.2.160.0060.01422.13
8.2.150.0090.00924.18
8.2.140.0120.00624.66
8.2.130.0130.00626.16
8.2.120.0140.00322.00
8.2.110.0090.00022.11
8.2.100.0060.00617.68
8.2.90.0060.00319.22
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0040.00417.80
8.2.50.0060.00618.07
8.2.40.0040.00418.22
8.2.30.0030.00618.00
8.2.20.0040.00417.68
8.2.10.0050.00319.55
8.2.00.0030.00617.58
8.1.280.0100.01025.92
8.1.270.0090.00023.92
8.1.260.0150.00426.35
8.1.250.0160.00328.09
8.1.240.0060.00323.95
8.1.230.0040.00719.07
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.22
8.1.190.0000.00817.50
8.1.180.0080.00018.10
8.1.170.0040.00418.50
8.1.160.0000.00822.02
8.1.150.0000.00718.53
8.1.140.0040.00417.34
8.1.130.0030.00317.74
8.1.120.0000.00817.28
8.1.110.0000.00717.33
8.1.100.0040.00417.32
8.1.90.0040.00417.41
8.1.80.0070.00017.34
8.1.70.0030.00317.26
8.1.60.0030.00617.49
8.1.50.0040.00417.51
8.1.40.0050.00217.56
8.1.30.0040.00417.50
8.1.20.0040.00417.58
8.1.10.0030.00517.57
8.1.00.0000.00817.39
8.0.300.0000.00818.77
8.0.290.0040.00417.05
8.0.280.0070.00018.41
8.0.270.0040.00417.06
8.0.260.0030.00316.77
8.0.250.0040.00417.00
8.0.240.0000.00816.97
8.0.230.0000.00716.99
8.0.220.0040.00416.91
8.0.210.0030.00316.98
8.0.200.0060.00016.88
8.0.190.0050.00316.91
8.0.180.0070.00016.82
8.0.170.0000.00816.91
8.0.160.0030.00616.87
8.0.150.0040.00416.90
8.0.140.0020.00516.80
8.0.130.0060.00013.37
8.0.120.0000.00816.88
8.0.110.0050.00216.85
8.0.100.0040.00416.98
8.0.90.0040.00416.95
8.0.80.0070.01516.87
8.0.70.0040.00417.03
8.0.60.0000.00716.82
8.0.50.0050.00216.93
8.0.30.0110.01017.03
8.0.20.0140.00617.40
8.0.10.0040.00416.96
8.0.00.0100.00816.75
7.4.330.0030.00315.14
7.4.320.0060.00016.41
7.4.300.0000.00616.57
7.4.290.0060.00316.43
7.4.280.0030.00316.47
7.4.270.0000.00616.46
7.4.260.0000.00816.48
7.4.250.0040.00416.50
7.4.240.0000.00716.55
7.4.230.0030.00316.59
7.4.220.0060.01216.59
7.4.210.0090.00816.53
7.4.200.0000.00716.35
7.4.190.0030.00316.44
7.4.160.0060.00916.41
7.4.150.0100.00717.40
7.4.140.0120.00917.86
7.4.130.0100.00716.41
7.4.120.0080.01116.61
7.4.110.0110.00516.54
7.4.100.0160.00316.65
7.4.90.0170.00316.51
7.4.80.0110.00816.37
7.4.70.0100.00716.49
7.4.60.0070.01016.55
7.4.50.0000.00716.11
7.4.40.0070.00322.77
7.4.30.0060.01216.59
7.4.00.0100.00814.95
7.3.330.0000.00613.13
7.3.320.0000.00513.07
7.3.310.0030.00316.37
7.3.300.0000.00716.27
7.3.290.0000.02116.35
7.3.280.0080.00916.34
7.3.270.0060.01317.40
7.3.260.0080.00816.38
7.3.250.0080.00816.36
7.3.240.0060.01316.51
7.3.230.0100.01016.52
7.3.210.0100.00716.32
7.3.200.0070.01319.39
7.3.190.0080.01116.39
7.3.180.0060.01016.31
7.3.170.0030.01316.54
7.3.160.0130.00316.33
7.3.120.0080.00514.86
7.3.110.0030.01314.75
7.3.100.0090.00614.55
7.3.90.0030.01214.79
7.3.80.0080.00614.72
7.3.70.0030.00614.76
7.3.60.0030.00614.81
7.3.50.0070.00714.58
7.3.40.0140.00014.74
7.3.30.0070.00314.58
7.3.20.0060.01016.73
7.3.10.0000.01516.61
7.3.00.0060.01116.37
7.2.330.0140.00316.46
7.2.320.0090.01516.60
7.2.310.0090.01216.39
7.2.300.0100.00616.26
7.2.290.0090.01316.33
7.2.250.0060.01314.82
7.2.240.0130.00614.98
7.2.230.0060.01015.07
7.2.220.0040.01115.18
7.2.210.0040.01515.06
7.2.200.0000.01414.94
7.2.190.0110.00014.94
7.2.180.0110.00414.81
7.2.170.0060.00314.94
7.2.60.0060.00616.85
7.2.00.0030.01319.04
7.1.330.0060.00615.57
7.1.320.0070.00715.53
7.1.310.0060.00615.37
7.1.300.0060.00315.60
7.1.290.0090.00615.33
7.1.280.0130.00015.56
7.1.270.0040.00415.45
7.1.260.0060.00315.21
7.1.200.0100.00315.61
7.1.100.0030.00618.15
7.1.70.0040.00817.01
7.1.60.0060.01619.29
7.1.50.0110.01416.83
7.1.00.0030.07722.31
7.0.200.0160.00316.76
7.0.140.0070.06722.07
7.0.100.0030.04319.92
7.0.90.0300.05319.90
7.0.80.0230.04720.00
7.0.70.0270.04719.92
7.0.60.0430.05320.07
7.0.50.0200.04720.30
7.0.40.0130.03320.02
7.0.30.0000.05320.18
7.0.20.0170.04720.13
7.0.10.0200.04020.18
7.0.00.0070.04320.04
5.6.280.0030.07320.86
5.6.250.0200.04020.61
5.6.240.0070.04720.56
5.6.230.0070.04020.72
5.6.220.0070.05320.53
5.6.210.0170.03320.56
5.6.200.0270.03021.05
5.6.190.0030.04720.95
5.6.180.0100.05721.14
5.6.170.0030.04720.96
5.6.160.0070.06020.91
5.6.150.0070.06321.13
5.6.140.0030.04321.09
5.6.130.0070.05021.10
5.6.120.0070.09020.95
5.6.110.0100.07321.06
5.6.100.0030.04721.06
5.6.90.0070.06021.11
5.6.80.0070.04020.38
5.6.70.0100.05020.37
5.6.60.0030.04320.43
5.6.50.0030.05020.34
5.6.40.0030.04720.36
5.6.30.0070.03720.42
5.6.20.0130.05020.23
5.6.10.0070.04020.48
5.6.00.0030.04320.26
5.5.380.0030.04320.37
5.5.370.0070.05320.35
5.5.360.0070.05320.44
5.5.350.0030.05720.37
5.5.340.0100.04020.88
5.5.330.0070.05320.73
5.5.320.0100.04020.92
5.5.310.0030.05320.76
5.5.300.0030.04720.80
5.5.290.0030.07320.90
5.5.280.0100.04020.92
5.5.270.0100.06720.82
5.5.260.0030.05020.87
5.5.250.0030.05720.64
5.5.240.0130.07020.30
5.5.230.0030.05020.12
5.5.220.0000.06720.01
5.5.210.0170.05720.13
5.5.200.0070.03720.27
5.5.190.0130.04720.23
5.5.180.0130.05720.22
5.5.160.0070.06320.19
5.5.150.0000.05320.21
5.5.140.0000.07719.95
5.5.130.0100.03720.10
5.5.120.0070.06020.17
5.5.110.0100.07720.25
5.5.100.0070.05720.05
5.5.90.0030.07020.14
5.5.80.0030.04320.07
5.5.70.0100.03719.93
5.5.60.0070.06720.15
5.5.50.0030.05720.00
5.5.40.0100.06019.99
5.5.30.0000.05320.04
5.5.20.0100.06320.13
5.5.10.0030.05320.04
5.5.00.0070.07319.93
5.4.450.0030.06319.16
5.4.440.0000.04719.23
5.4.430.0100.05019.45
5.4.420.0100.04719.29
5.4.410.0130.06719.26
5.4.400.0070.07319.17
5.4.390.0170.03719.24
5.4.380.0070.03719.12
5.4.370.0070.03719.23
5.4.360.0030.05319.15
5.4.350.0030.05319.05
5.4.340.0030.04719.08
5.4.320.0100.05019.13
5.4.310.0070.05018.93
5.4.300.0070.05019.06
5.4.290.0100.03719.12
5.4.280.0070.05718.95
5.4.270.0070.04318.90
5.4.260.0230.04018.92
5.4.250.0000.06319.07
5.4.240.0030.04019.09
5.4.230.0030.04319.00
5.4.220.0070.05318.80
5.4.210.0100.06018.95
5.4.200.0100.06019.16
5.4.190.0070.06719.06
5.4.180.0100.07019.05
5.4.170.0030.06719.02
5.4.160.0130.05719.10
5.4.150.0000.08319.21
5.4.140.0130.07316.34
5.4.130.0030.08716.33
5.4.120.0070.05016.26
5.4.110.0070.04316.30
5.4.100.0000.05716.45
5.4.90.0100.05316.38
5.4.80.0170.04016.29
5.4.70.0070.06016.41
5.4.60.0130.06316.41
5.4.50.0030.05316.18
5.4.40.0070.07316.24
5.4.30.0100.06316.29
5.4.20.0070.07316.30
5.4.10.0070.05716.29
5.4.00.0000.04715.81
5.3.290.0100.07714.66
5.3.280.0000.06314.55
5.3.270.0100.05314.54
5.3.260.0000.05014.55
5.3.250.0100.03714.43
5.3.240.0000.04314.52
5.3.230.0030.08014.55
5.3.220.0030.03714.57
5.3.210.0030.08314.58
5.3.200.0100.07014.41
5.3.190.0170.06314.52
5.3.180.0070.05714.54
5.3.170.0030.07014.42
5.3.160.0030.05014.48
5.3.150.0070.05314.52
5.3.140.0030.07314.53
5.3.130.0070.05314.56
5.3.120.0000.04314.40
5.3.110.0070.06314.41
5.3.100.0030.06313.98
5.3.90.0000.05013.98
5.3.80.0070.04714.00
5.3.70.0070.04713.98
5.3.60.0200.05714.00
5.3.50.0230.02713.71
5.3.40.0070.04313.83
5.3.30.0030.04713.88
5.3.20.0030.05313.64
5.3.10.0030.04013.63
5.3.00.0130.05713.50
5.2.170.0030.04010.98
5.2.160.0030.04310.95
5.2.150.0100.04011.18
5.2.140.0100.04710.99
5.2.130.0000.04710.94
5.2.120.0000.04011.17
5.2.110.0030.03711.06
5.2.100.0070.03711.09
5.2.90.0070.02711.06
5.2.80.0000.03311.14
5.2.70.0030.04010.93
5.2.60.0030.03311.11
5.2.50.0070.05010.81
5.2.40.0030.05310.82
5.2.30.0070.05310.97
5.2.20.0030.04310.84
5.2.10.0070.04010.76
5.2.00.0030.04310.73
5.1.60.0100.04710.66
5.1.50.0100.02310.66
5.1.40.0030.04710.66
5.1.30.0170.02710.66
5.1.20.0000.04310.66
5.1.10.0000.04010.66
5.1.00.0100.03310.66
5.0.50.0000.03710.66
5.0.40.0000.03010.66
5.0.30.0000.05310.66
5.0.20.0070.02310.66
5.0.10.0000.04010.66
5.0.00.0030.03310.66
4.4.90.0030.02310.66
4.4.80.0070.01010.66
4.4.70.0000.02010.66
4.4.60.0000.02010.66
4.4.50.0000.03010.66
4.4.40.0030.04310.66
4.4.30.0070.02710.66
4.4.20.0000.03010.66
4.4.10.0000.02710.66
4.4.00.0000.03710.66
4.3.110.0000.01710.66
4.3.100.0070.02010.66
4.3.90.0000.03310.66
4.3.80.0000.03310.66
4.3.70.0000.02310.66
4.3.60.0030.02310.66
4.3.50.0030.02710.66
4.3.40.0000.05710.66
4.3.30.0030.02310.66
4.3.20.0000.03710.66
4.3.10.0030.02710.66
4.3.00.0000.02710.66

preferences:
42.35 ms | 401 KiB | 5 Q