3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class Foo{ public int $prop1 = 1; public function __get(string $name): mixed { return 2; } public function __construct(){ unset($this->prop1); } } $foo = new Foo(); echo $foo;

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.01116.50
8.3.50.0100.00716.15
8.3.40.0110.00418.72
8.3.30.0110.00418.39
8.3.20.0040.00420.18
8.3.10.0040.00421.72
8.3.00.0080.00019.38
8.2.180.0060.01216.38
8.2.170.0070.00722.96
8.2.160.0100.00320.43
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00020.93
8.2.120.0040.00426.35
8.2.110.0040.00820.83
8.2.100.0040.00718.03
8.2.90.0040.00419.30
8.2.80.0080.00017.97
8.2.70.0040.00417.38
8.2.60.0040.00418.04
8.2.50.0050.00318.10
8.2.40.0000.00720.37
8.2.30.0040.00420.78
8.2.20.0040.00417.90
8.2.10.0060.00317.84
8.2.00.0040.00317.79
8.1.280.0160.00625.92
8.1.270.0000.00822.06
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00423.98
8.1.230.0040.00818.97
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.25
8.1.190.0060.00317.10
8.1.180.0030.00618.10
8.1.170.0030.00618.54
8.1.160.0040.00418.86
8.1.150.0000.00718.74
8.1.140.0050.00219.30
8.1.130.0000.00718.73
8.1.120.0030.00317.21
8.1.110.0040.00417.27
8.1.100.0000.00817.32
8.1.90.0080.00017.25
8.1.80.0000.00717.31
8.1.70.0000.00717.21
8.1.60.0050.00517.43
8.1.50.0060.00317.35
8.1.40.0050.00317.36
8.1.30.0040.00417.39
8.1.20.0000.00817.39
8.1.10.0040.00417.32
8.1.00.0040.00417.36
8.0.300.0000.00718.77
8.0.290.0080.00016.58
8.0.280.0070.00018.37
8.0.270.0000.00717.09
8.0.260.0060.00016.77
8.0.250.0030.00316.81
8.0.240.0030.00316.83
8.0.230.0030.00616.80
8.0.220.0000.00816.65
8.0.210.0030.00316.61
8.0.200.0070.00016.80
8.0.190.0080.00016.71
8.0.180.0070.00016.63
8.0.170.0000.00716.77
8.0.160.0030.00316.72
8.0.150.0030.00316.75
8.0.140.0030.00416.66
8.0.130.0030.00313.48
8.0.120.0030.00616.76
8.0.110.0050.00316.71
8.0.100.0000.00716.81
8.0.90.0040.00416.78
8.0.80.0120.00316.63
8.0.70.0000.00716.56
8.0.60.0070.00016.82
8.0.50.0000.00816.60
8.0.30.0130.00316.88
8.0.20.0070.01417.40
8.0.10.0080.00016.84
8.0.00.0060.01216.46
7.4.330.0030.00315.55
7.4.320.0060.00016.35
7.4.300.0000.00616.27
7.4.290.0030.00716.50
7.4.280.0030.00316.36
7.4.270.0000.00716.26
7.4.260.0070.00016.49
7.4.250.0030.00316.45
7.4.240.0030.00316.37
7.4.230.0030.00316.45
7.4.220.0190.00316.32
7.4.210.0030.01016.49
7.4.200.0070.00016.35
7.4.160.0070.00916.33
7.4.150.0060.01317.40
7.4.140.0060.01117.86
7.4.130.0100.01016.41
7.4.120.0130.00516.40
7.4.110.0150.00316.34
7.4.100.0030.01716.27
7.4.90.0030.01516.24
7.4.80.0110.01119.39
7.4.70.0090.00916.45
7.4.60.0080.00816.56
7.4.50.0060.01016.32
7.4.40.0080.00816.36
7.4.30.0120.00416.24
7.3.330.0030.00313.23
7.3.320.0050.00013.14
7.3.310.0000.00716.08
7.3.300.0030.00316.15
7.3.290.0090.00816.11
7.3.280.0080.00816.11
7.3.270.0140.00317.40
7.3.260.0140.00616.25
7.3.250.0100.00716.22
7.3.240.0120.01016.29
7.3.230.0140.00316.08
7.3.210.0150.00316.23
7.3.200.0110.00616.10
7.3.190.0030.01516.52
7.3.180.0120.00416.37
7.3.170.0090.00616.28
7.3.160.0090.00616.16
7.2.330.0180.00316.29
7.2.320.0120.00416.32
7.2.310.0170.00016.20
7.2.300.0120.00316.43
7.2.290.0100.00716.33
7.1.70.0160.01015.05
7.1.60.0300.01133.21
7.1.50.0440.01632.56
7.1.40.0320.01032.40
7.1.30.0390.00932.55
7.1.20.0280.01432.60
7.1.10.0150.01114.27
7.1.00.0590.01414.66
7.0.200.0210.00614.82
7.0.190.0260.00314.59
7.0.180.0210.01414.29
7.0.170.0220.00614.29
7.0.160.0130.01314.31
7.0.150.0180.01114.27
7.0.140.0220.01414.36
7.0.130.0240.00714.58
7.0.120.0190.00914.50
7.0.110.0180.02114.29
7.0.100.0280.01614.52
7.0.90.0290.01014.45
7.0.80.0190.01914.15
7.0.70.0170.01114.25
7.0.60.0130.01314.07
7.0.50.0160.01014.36
7.0.40.0160.01014.55
7.0.30.0230.00314.66
7.0.20.0160.01014.39
7.0.10.0130.01314.53
7.0.00.0120.01414.37

preferences:
36.84 ms | 401 KiB | 5 Q