3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = <<< TXT foo bar baz TXT; $file = new SplTempFileObject(-1); $file->fwrite($txt); $file->rewind(); $file->seek(100); echo "{$file->key()} => {$file->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.0.0beta10.0060.01216.64
8.0.0alpha30.0030.02016.57
8.0.0alpha20.0130.00616.54
8.0.0alpha10.0100.00616.56
7.4.80.0110.01119.37
7.4.70.0070.01016.42
7.4.60.0070.01016.50
7.4.50.0030.00516.61
7.4.40.0060.00922.27
7.4.30.0100.00616.56
7.4.00.0080.00814.85
7.3.200.0070.01019.39
7.3.190.0130.00316.27
7.3.180.0100.00616.59
7.3.170.0090.00816.29
7.3.160.0100.00616.26
7.3.120.0030.01414.77
7.2.320.0110.00816.64
7.2.310.0070.01116.48
7.2.300.0060.01216.31
7.2.290.0000.01716.31
7.1.70.0000.01117.17
7.1.60.0120.01219.40
7.1.50.0100.01316.91
7.1.00.0030.07322.30
7.0.200.0030.00616.74
7.0.140.0030.07322.10
7.0.70.0030.05021.78
7.0.60.0000.08321.76
7.0.50.0000.09322.14
7.0.40.0030.05720.00
7.0.30.0030.04319.96
7.0.20.0070.08020.18
7.0.10.0030.08320.14
7.0.00.0030.07020.03
5.6.280.0070.07021.11
5.6.220.0030.08720.49
5.6.210.0030.08720.74
5.6.200.0030.09021.10
5.6.190.0070.08021.13
5.6.180.0000.09020.93
5.6.170.0030.08721.03
5.6.160.0030.04320.95
5.6.150.0100.06021.11
5.6.140.0030.04321.10
5.6.130.0030.07321.07
5.6.120.0030.08320.94
5.6.110.0030.07021.00
5.6.100.0030.08320.92
5.6.90.0030.08020.94
5.6.80.0030.08320.45
5.6.70.0030.08020.43
5.6.60.0000.04020.38
5.6.50.0100.07320.43
5.6.40.0100.06720.48
5.6.30.0070.08020.38
5.6.20.0170.07320.23
5.6.10.0070.07720.40
5.6.00.0000.08020.36
5.5.360.0070.06720.50
5.5.350.0070.06320.33
5.5.340.0070.06720.87
5.5.330.0030.06320.89
5.5.320.0000.06320.92
5.5.310.0130.07020.88
5.5.300.0070.08020.82
5.5.290.0100.06020.87
5.5.280.0100.08320.73
5.5.270.0000.09320.87
5.5.260.0030.06720.91
5.5.250.0100.05020.64
5.5.240.0030.08020.25
5.5.230.0030.08020.24
5.5.220.0000.04020.16
5.5.210.0070.08020.16
5.5.200.0000.08020.22
5.5.190.0130.07320.23
5.5.180.0030.05720.27
5.5.160.0000.07320.26
5.5.150.0070.04320.18
5.5.140.0030.07719.95
5.5.130.0070.07020.20
5.5.120.0100.04720.12
5.5.110.0030.06320.16
5.5.100.0070.04720.11
5.5.90.0000.05019.96
5.5.80.0000.04720.16
5.5.70.0070.03320.15
5.5.60.0030.07020.08
5.5.50.0000.04319.96
5.5.40.0030.05019.95
5.5.30.0030.08019.95
5.5.20.0070.04719.89
5.5.10.0000.04020.12
5.5.00.0030.03719.96
5.4.450.0070.07719.56
5.4.440.0070.08319.55
5.4.430.0130.07319.26
5.4.420.0030.08019.22
5.4.410.0070.05019.18
5.4.400.0070.07718.91
5.4.390.0030.07719.12
5.4.380.0000.05018.94
5.4.370.0030.07019.12
5.4.360.0070.07318.81
5.4.350.0100.04018.96
5.4.340.0070.07718.95
5.4.320.0100.07019.14
5.4.310.0070.07018.90
5.4.300.0070.08019.07
5.4.290.0030.07319.14
5.4.280.0000.07019.04
5.4.270.0030.07319.12
5.4.260.0070.04319.14
5.4.250.0030.05318.93
5.4.240.0000.04719.12
5.4.230.0030.03719.07
5.4.220.0000.04319.22
5.4.210.0030.03719.04
5.4.200.0000.03719.05
5.4.190.0030.03318.93
5.4.180.0000.04019.13
5.4.170.0070.03318.98
5.4.160.0030.03719.15
5.4.150.0000.03718.76
5.4.140.0030.03316.37
5.4.130.0030.03316.14
5.4.120.0100.06316.28
5.4.110.0100.03716.45
5.4.100.0030.06716.38
5.4.90.0100.07016.45
5.4.80.0030.07316.19
5.4.70.0030.04316.24
5.4.60.0000.03716.34
5.4.50.0030.05316.18
5.4.40.0030.03316.38
5.4.30.0070.03016.18
5.4.20.0030.03316.23
5.4.10.0030.03316.33
5.4.00.0000.03715.73
5.3.290.0000.08314.65
5.3.280.0000.05014.43
5.3.270.0000.04014.58
5.3.260.0000.03714.46
5.3.250.0000.03714.54
5.3.240.0000.03714.46
5.3.230.0000.03714.46
5.3.220.0000.06714.51
5.3.210.0070.06314.43
5.3.200.0070.05314.43
5.3.190.0030.07314.43
5.3.180.0030.05714.55
5.3.170.0030.05314.38
5.3.160.0030.03714.54
5.3.150.0000.06714.55
5.3.140.0000.04314.51
5.3.130.0070.03014.49
5.3.120.0000.04014.51
5.3.110.0000.04014.54
5.3.100.0070.06314.00
5.3.90.0100.04013.98
5.3.80.0030.03714.01
5.3.70.0030.03313.79
5.3.60.0000.03713.94
5.3.50.0000.06013.72
5.3.40.0030.03313.91
5.3.30.0030.05713.77
5.3.20.0000.04713.63
5.3.10.0000.03313.63
5.3.00.0000.03313.63
5.2.170.0000.03012.23
5.2.160.0030.02712.23
5.2.150.0000.03012.23
5.2.140.0030.05012.23
5.2.130.0000.03012.23
5.2.120.0030.03012.23
5.2.110.0000.03012.23
5.2.100.0000.02712.23
5.2.90.0030.02712.23
5.2.80.0000.03012.23
5.2.70.0030.02712.23
5.2.60.0202.44010.61
5.2.50.0202.41310.70
5.2.40.0172.43310.69
5.2.30.0232.42310.68
5.2.20.0302.42310.64
5.2.10.0102.43710.61
5.2.00.0232.41710.46
5.1.60.0172.3709.81
5.1.50.0172.4079.89
5.1.40.0232.3809.89
5.1.30.0100.04712.23
5.1.20.0030.03712.23
5.1.10.0030.04012.23
5.1.00.0030.05712.23
5.0.50.0000.04712.23
5.0.40.0000.04712.23
5.0.30.0030.06712.23
5.0.20.0070.04312.23
5.0.10.0030.03712.23
5.0.00.0030.05712.23
4.4.90.0030.01012.23
4.4.80.0000.03712.23
4.4.70.0030.03312.23
4.4.60.0000.02312.23
4.4.50.0000.03712.23
4.4.40.0000.02712.23
4.4.30.0030.02012.23
4.4.20.0000.02312.23
4.4.10.0030.03012.23
4.4.00.0030.04012.23
4.3.110.0000.02712.23
4.3.100.0000.03712.23
4.3.90.0030.02712.23
4.3.80.0030.05012.23
4.3.70.0070.03312.23
4.3.60.0070.02312.23
4.3.50.0000.02012.23
4.3.40.0070.05012.23
4.3.30.0030.03312.23
4.3.20.0000.02712.23
4.3.10.0000.02012.23
4.3.00.0030.02712.23