3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $c = 1; public function start() { $a = function () { return $this->c; }; } } $o = new A; echo A->start();

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.40.0100.01019.00
8.3.30.0080.00819.09
8.3.20.0040.00420.39
8.3.10.0040.00422.04
8.3.00.0080.00022.37
8.2.170.0040.01122.96
8.2.160.0080.00620.39
8.2.150.0100.00524.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00819.38
8.2.110.0000.00922.11
8.2.100.0030.00618.77
8.1.270.0040.00422.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00418.62
8.1.230.0060.00318.48
5.4.270.2070.04019.25
5.4.260.1800.05019.06
5.4.250.1830.04019.19
5.4.240.1970.04318.91
5.4.230.2030.04019.05
5.4.220.1970.04319.05
5.4.210.2070.03019.30
5.4.200.1930.03719.16
5.4.190.2070.04319.23
5.4.180.2100.03719.07
5.4.170.2070.04019.05
5.4.160.1970.05019.20
5.4.150.2100.04319.22
5.4.140.1870.03716.41
5.4.130.2100.04016.33
5.4.120.1930.03316.71
5.4.110.1870.03716.30
5.4.100.1800.03716.25
5.4.90.1770.04016.50
5.4.80.1830.03716.49
5.4.70.2000.03316.60
5.4.60.1930.03016.24
5.4.50.2100.04016.43
5.4.40.1930.03016.52
5.4.30.1830.04316.51
5.4.20.1900.03016.52
5.4.10.1800.03716.52
5.4.00.1800.03715.95
5.3.280.1700.04014.51
5.3.270.0130.02714.73
5.3.260.0000.04014.62
5.3.250.0900.03714.54
5.3.240.1970.03314.63
5.3.230.1770.04314.52
5.3.220.1900.03314.72
5.3.210.1830.04014.58
5.3.200.2030.03014.54
5.3.190.2100.03314.56
5.3.180.1930.04014.49
5.3.170.2000.03714.65
5.3.160.2000.04714.62
5.3.150.2030.03714.54
5.3.140.2000.04314.46
5.3.130.1870.04014.54
5.3.120.2070.03714.67
5.3.110.1830.03314.46
5.3.100.1770.03714.05
5.3.90.2030.04314.11
5.3.80.2030.03714.04
5.3.70.1830.03014.25
5.3.60.1970.04713.93
5.3.50.1900.04313.96
5.3.40.2100.05014.01
5.3.30.1870.04013.92
5.3.20.2070.03713.59
5.3.10.1800.03013.56
5.3.00.2100.03713.57
5.2.170.1530.03311.05
5.2.160.1470.03011.26
5.2.150.1730.03711.07
5.2.140.1670.03311.01
5.2.130.1670.02711.06
5.2.120.1770.03311.01
5.2.110.1470.03011.02
5.2.100.1470.03011.21
5.2.90.1700.03011.02
5.2.80.1530.03011.17
5.2.70.1670.04011.32
5.2.60.1630.02311.13
5.2.50.1770.04010.95
5.2.40.1470.03011.14
5.2.30.0330.06010.89
5.2.20.0030.06310.93
5.2.10.0030.04710.79
5.2.00.0130.05310.63
5.1.60.0030.0339.89
5.1.50.0730.0309.89
5.1.40.1430.0279.89
5.1.30.1400.02710.56
5.1.20.1800.02710.28
5.1.10.1400.02710.06
5.1.00.1730.0279.96
5.0.50.0770.0278.63
5.0.40.0970.0278.39
5.0.30.0970.0408.10
5.0.20.0800.0308.36
5.0.10.0900.0308.14
5.0.00.0770.0278.06
4.4.90.0730.0177.55
4.4.80.0730.0277.55
4.4.70.0700.0107.55
4.4.60.0600.0177.55
4.4.50.0600.0207.55
4.4.40.0630.0277.55
4.4.30.0630.0177.55
4.4.20.0600.0177.55
4.4.10.0630.0137.55
4.4.00.0600.0277.55
4.3.110.0830.0237.55
4.3.100.0630.0177.55
4.3.90.0630.0107.55
4.3.80.0600.0237.55
4.3.70.0630.0137.55
4.3.60.0600.0137.55
4.3.50.0600.0177.55
4.3.40.0600.0277.55
4.3.30.0300.0177.55
4.3.20.0300.0177.55
4.3.10.0300.0177.55
4.3.00.0370.0177.55

preferences:
37.05 ms | 400 KiB | 5 Q