3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = new SplFileObject(__FILE__); $f->seek(0); echo $f->fgets(); $f->seek(1); echo $f->fgets(); $f->seek(2); echo $f->fgets();
based on 9C6t8

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.0.0rc20.0100.00916.66
8.0.0rc10.0140.00316.88
8.0.0beta30.0090.00916.55
8.0.0beta10.0090.00916.74
8.0.0alpha30.0030.01416.72
8.0.0alpha20.0110.00616.55
8.0.0alpha10.0070.01016.55
7.4.120.0090.00816.34
7.4.110.0070.01016.42
7.4.100.0130.00716.52
7.4.90.0090.00916.55
7.4.80.0080.01119.39
7.4.70.0090.00616.49
7.4.60.0140.00416.43
7.4.50.0000.00816.56
7.4.40.0120.00416.47
7.4.30.0070.00716.50
7.4.00.0100.00714.94
7.3.230.0070.01116.39
7.3.210.0080.00816.19
7.3.200.0130.00719.39
7.3.190.0060.01316.47
7.3.180.0080.00816.22
7.3.170.0160.00616.51
7.3.160.0100.00616.52
7.2.330.0100.01016.66
7.2.320.0090.00916.64
7.2.310.0130.01016.46
7.2.300.0060.01116.63
7.2.290.0110.00516.54
7.2.60.0040.01116.59
7.2.00.0070.00719.29
7.1.200.0100.00315.59
7.1.100.0000.01218.02
7.1.70.0080.00316.91
7.1.60.0030.01619.61
7.1.50.0070.00416.73
7.1.00.0030.07722.31
7.0.200.0060.00616.19
7.0.140.0100.06722.10
7.0.100.0000.04020.02
7.0.90.0000.04720.06
7.0.80.0070.04019.81
7.0.70.0070.03719.91
7.0.60.0070.04319.96
7.0.50.0070.04320.32
7.0.40.0030.04720.11
7.0.30.0030.04320.18
7.0.20.0030.08720.10
7.0.10.0100.08320.13
7.0.00.0100.08320.16
5.6.280.0030.06721.09
5.6.250.0070.04020.81
5.6.240.0070.04020.50
5.6.230.0200.02320.63
5.6.220.0000.04320.49
5.6.210.0100.03720.75
5.6.200.0000.05320.98
5.6.190.0030.04721.11
5.6.180.0030.06021.13
5.6.170.0100.07021.04
5.6.160.0200.06720.93
5.6.150.0100.08321.00
5.6.140.0100.05021.00
5.6.130.0100.08321.09
5.6.120.0000.06321.09
5.6.110.0100.06021.12
5.6.100.0300.04020.93
5.6.90.0170.07320.95
5.6.80.0030.08320.34
5.6.70.0100.03320.45
5.6.60.0130.04720.30
5.6.50.0100.07720.48
5.6.40.0130.07320.43
5.6.30.0100.07320.44
5.6.20.0170.03720.39
5.6.10.0130.07320.34
5.6.00.0070.08020.27
5.5.380.0000.04720.39
5.5.370.0100.03320.44
5.5.360.0070.03720.34
5.5.350.0030.04020.37
5.5.340.0030.03720.89
5.5.330.0030.04020.79
5.5.320.0130.03320.90
5.5.310.0100.06320.77
5.5.300.0030.07720.88
5.5.290.0030.05320.88
5.5.280.0070.08020.93
5.5.270.0070.08320.78
5.5.260.0070.07320.60
5.5.250.0070.08720.70
5.5.240.0100.07720.26
5.5.230.0130.06720.10
5.5.220.0100.07320.29
5.5.210.0030.08020.14
5.5.200.0100.07020.18
5.5.190.0100.07720.27
5.5.180.0030.06320.27
5.5.160.0100.07720.17
5.5.150.0000.05720.15
5.5.140.0070.07720.13
5.5.130.0100.07720.25
5.5.120.0130.06720.12
5.5.110.0100.07019.98
5.5.100.0030.07720.07
5.5.90.0130.07320.11
5.5.80.0070.06019.91
5.5.70.0070.08020.04
5.5.60.0030.08320.05
5.5.50.0130.06020.05
5.5.40.0130.04320.05
5.5.30.0000.04720.05
5.5.20.0030.05720.08
5.5.10.0000.06320.04
5.5.00.0170.07020.06
5.4.450.0030.08019.38
5.4.440.0070.08019.37
5.4.430.0070.07019.27
5.4.420.0100.04319.27
5.4.410.0030.04719.18
5.4.400.0030.04719.10
5.4.390.0000.08318.79
5.4.380.0070.08019.10
5.4.370.0000.08018.90
5.4.360.0030.07719.13
5.4.350.0130.07019.05
5.4.340.0070.07319.03
5.4.320.0100.05719.03
5.4.310.0130.07319.11
5.4.300.0000.05319.23
5.4.290.0100.07719.03
5.4.280.0030.05019.07
5.4.270.0170.06319.11
5.4.260.0100.07319.04
5.4.250.0070.04319.11
5.4.240.0130.07319.06
5.4.230.0100.04319.04
5.4.220.0100.07719.22
5.4.210.0030.04719.04
5.4.200.0070.04718.78
5.4.190.0030.07019.04
5.4.180.0030.07718.95
5.4.170.0070.08019.09
5.4.160.0030.05018.90
5.4.150.0070.04319.13
5.4.140.0030.08316.29
5.4.130.0030.07716.27
5.4.120.0030.07316.32
5.4.110.0070.07016.33
5.4.100.0070.07316.20
5.4.90.0030.07716.22
5.4.80.0030.08016.25
5.4.70.0070.05316.21
5.4.60.0030.06716.29
5.4.50.0030.07716.21
5.4.40.0100.06316.46
5.4.30.0170.07016.23
5.4.20.0030.07016.18
5.4.10.0100.07016.27
5.4.00.0130.05315.73
5.3.290.0100.07014.64
5.3.280.0030.06714.45
5.3.270.0100.07714.47
5.3.260.0070.04714.46
5.3.250.0170.06314.59
5.3.240.0100.07014.57
5.3.230.0100.05314.46
5.3.220.0030.08014.53
5.3.210.0070.04014.53
5.3.200.0030.07714.53
5.3.190.0000.05714.56
5.3.180.0070.07014.48
5.3.170.0070.07014.50
5.3.160.0270.04714.39
5.3.150.0030.05014.48
5.3.140.0170.06314.42
5.3.130.0070.05714.41
5.3.120.0030.07714.52
5.3.110.0100.07314.51
5.3.100.0070.06013.97
5.3.90.0130.04014.02
5.3.80.0030.08013.98
5.3.70.0070.07314.03
5.3.60.0000.07713.96
5.3.50.0070.05713.94
5.3.40.0130.07013.93
5.3.30.0130.04713.78
5.3.20.0030.07313.65
5.3.10.0170.05713.61
5.3.00.0070.06313.63
5.2.170.0030.06311.09
5.2.160.0030.05010.98
5.2.150.0030.06311.11
5.2.140.0070.04710.99
5.2.130.0000.06711.10
5.2.120.0030.06011.12
5.2.110.0070.04311.05
5.2.100.0000.03311.06
5.2.90.0070.03010.90
5.2.80.0000.06311.09
5.2.70.0030.05311.09
5.2.60.0000.06310.89
5.2.50.0130.03010.97
5.2.40.0130.05310.82
5.2.30.0030.06310.89
5.2.20.0030.06710.97
5.2.10.0000.06710.72
5.2.00.0070.05710.58
5.1.60.0030.05010.43
5.1.50.0030.05710.43
5.1.40.0030.05010.43
5.1.30.0030.03710.43
5.1.20.0000.05710.43
5.1.10.0130.02710.43
5.1.00.0030.05310.43
5.0.50.0070.04010.43
5.0.40.0070.04010.43
5.0.30.0070.06010.43
5.0.20.0070.04010.43
5.0.10.0000.04010.43
5.0.00.0000.05310.43
4.4.90.0030.02010.43
4.4.80.0030.01710.43
4.4.70.0070.02010.43
4.4.60.0070.01310.43
4.4.50.0000.04010.43
4.4.40.0070.03310.43
4.4.30.0030.03310.43
4.4.20.0030.02710.43
4.4.10.0030.03710.43
4.4.00.0030.04310.43
4.3.110.0030.03310.43
4.3.100.0000.03310.43
4.3.90.0030.02310.43
4.3.80.0030.04310.43
4.3.70.0030.02710.43
4.3.60.0000.02310.43
4.3.50.0030.03710.43
4.3.40.0030.04310.43
4.3.30.0000.03710.43
4.3.20.0000.03710.43
4.3.10.0000.02010.43
4.3.00.0000.03710.43