3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class x { public function content(?string $content = null) :(this, string) { if ($content) return $this->setContent($content); return $this->content; } }

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.0110.00718.43
8.3.50.0080.00821.98
8.3.40.0060.01218.42
8.3.30.0140.00318.79
8.3.20.0060.00320.28
8.3.10.0000.00723.66
8.3.00.0070.00019.03
8.2.180.0070.00716.32
8.2.170.0140.00022.96
8.2.160.0030.01020.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00020.98
8.2.110.0000.01122.25
8.2.100.0080.00417.71
8.2.90.0000.00917.84
8.2.80.0000.00817.97
8.2.70.0040.00817.38
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0050.00321.07
8.2.30.0070.00018.19
8.2.20.0080.00017.40
8.2.10.0030.00517.92
8.2.00.0000.00817.44
8.1.280.0100.00725.92
8.1.270.0040.00423.79
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0080.00022.30
8.1.230.0080.00421.03
8.1.220.0050.00317.74
8.1.210.0040.00418.91
8.1.200.0060.00317.10
8.1.190.0030.00517.22
8.1.180.0060.00318.10
8.1.170.0050.00218.59
8.1.160.0040.00421.93
8.1.150.0080.00018.37
8.1.140.0040.00417.27
8.1.130.0000.00717.80
8.1.120.0000.00717.29
8.1.110.0000.00817.36
8.1.100.0030.00317.19
8.1.90.0000.00817.32
8.1.80.0070.00017.25
8.1.70.0070.00017.27
8.1.60.0090.00017.50
8.1.50.0000.00817.35
8.1.40.0040.00417.26
8.1.30.0040.00417.50
8.1.20.0040.00417.53
8.1.10.0000.00717.42
8.1.00.0040.00417.29
8.0.300.0070.00019.96
8.0.290.0030.00317.05
8.0.280.0000.00718.28
8.0.270.0000.00717.16
8.0.260.0060.00017.11
8.0.250.0070.00016.73
8.0.240.0000.00716.81
8.0.230.0040.00416.78
8.0.220.0000.00716.76
8.0.210.0070.00016.68
8.0.200.0060.00016.82
8.0.190.0000.00716.71
8.0.180.0040.00416.85
8.0.170.0030.00616.70
8.0.160.0000.00716.80
8.0.150.0040.00416.76
8.0.140.0020.00516.70
8.0.130.0040.00413.30
8.0.120.0080.00016.63
8.0.110.0000.00716.66
8.0.100.0070.00016.68
8.0.90.0070.00016.62
8.0.80.0090.00616.79
8.0.70.0000.00716.71
8.0.60.0040.00416.75
8.0.50.0080.00016.81
8.0.30.0120.01017.08
8.0.20.0100.00917.40
8.0.10.0000.00716.68
8.0.00.0080.00916.69
7.4.330.0030.00315.11
7.4.320.0090.00016.35
7.4.300.0030.00516.45
7.4.290.0000.00716.38
7.4.280.0080.00016.37
7.4.270.0000.00716.32
7.4.260.0060.00316.48
7.4.250.0040.00416.43
7.4.240.0020.00516.42
7.4.230.0000.00716.27
7.4.220.0100.01816.38
7.4.210.0080.00616.44
7.4.200.0040.00416.20
7.4.190.0000.00716.31
7.4.160.0110.00616.45
7.4.150.0080.00917.40
7.4.140.0110.01117.86
7.4.130.0050.01216.55
7.4.120.0070.01016.41
7.4.110.0030.01616.35
7.4.100.0100.00716.41
7.4.90.0070.01016.26
7.4.80.0150.00319.39
7.4.70.0060.00916.46
7.4.60.0100.00716.22
7.4.50.0000.00516.20
7.4.40.0030.01416.26
7.4.30.0110.01216.46
7.3.330.0070.00013.06
7.3.320.0000.00713.07
7.3.310.0070.00016.09
7.3.300.0000.00715.98
7.3.290.0060.01216.14
7.3.280.0090.01016.09
7.3.270.0080.00817.40
7.3.260.0130.00916.39
7.3.250.0140.00616.32
7.3.240.0030.01216.36
7.3.230.0030.01616.43
7.3.210.0030.01316.05
7.3.200.0120.00619.39
7.3.190.0130.01016.37
7.3.180.0160.00016.14
7.3.170.0110.00316.27
7.3.160.0060.01016.11
7.2.330.0090.01016.30
7.2.320.0170.00516.57
7.2.310.0060.01016.24
7.2.300.0070.01316.46
7.2.290.0030.01416.42
5.4.320.0060.03512.45
5.4.310.0060.03812.45
5.4.300.0070.05312.45
5.4.290.0150.04712.45
5.4.280.0070.04912.34
5.4.270.0110.04712.34
5.4.260.0100.05212.35
5.4.250.0110.04812.34
5.4.240.0170.04012.34
5.4.230.0080.04612.34
5.4.220.0070.03712.34
5.4.210.0050.03712.34
5.4.200.0090.04512.34
5.4.190.0090.04612.34
5.4.180.0070.04512.34
5.4.170.0100.03712.35
5.4.160.0130.03212.34
5.4.150.0110.03412.34
5.4.140.0090.03812.02
5.4.130.0080.03912.01
5.4.120.0050.03911.97
5.4.110.0040.04011.96
5.4.100.0090.04311.96
5.4.90.0130.04811.96
5.4.80.0140.05411.96
5.4.70.0140.04911.96
5.4.60.0140.04811.96
5.4.50.0110.05211.96
5.4.40.0160.04411.95
5.4.30.0090.03811.95
5.4.20.0090.05011.95
5.4.10.0110.04411.95
5.4.00.0090.04211.44
5.3.290.0130.04012.80
5.3.280.0120.05212.71
5.3.270.0090.05212.73
5.3.260.0090.05512.72
5.3.250.0090.05212.72
5.3.240.0070.05412.72
5.3.230.0120.04812.71
5.3.220.0090.04112.68
5.3.210.0040.05212.68
5.3.200.0110.05012.68
5.3.190.0110.04612.68
5.3.180.0070.04712.68
5.3.170.0090.04612.67
5.3.160.0100.04712.67
5.3.150.0120.05212.67
5.3.140.0120.04912.66
5.3.130.0070.06312.66
5.3.120.0140.05712.66
5.3.110.0130.10112.66
5.3.100.0130.05612.12
5.3.90.0090.04912.08
5.3.80.0100.04712.07
5.3.70.0090.04612.07
5.3.60.0100.04612.07
5.3.50.0080.04912.00
5.3.40.0120.04712.00
5.3.30.0100.04811.94
5.3.20.0100.04711.71
5.3.10.0080.04911.68
5.3.00.0120.04711.67

preferences:
48.08 ms | 401 KiB | 5 Q