3v4l.org

run code in 300+ PHP versions simultaneously
<?php // lint >= 8.4 namespace AbstractFinalHook; final class User { private string $private = 'mailto: example.org' { get => 'private:' . $this->private; } final public string $final = 'mailto: example.org' { get => 'final:' . $this->final; } final protected string $protected = 'mailto: example.org' { get => 'protected:' . $this->protected; } final private string $email = 'mailto: example.org' { get => 'mailto:' . $this->email; } function doFoo(): void { $u = new User; var_dump($u->private); var_dump($u->protected); var_dump($u->final); var_dump($u->email); unset($u->email); } }

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.4.40.0420.00317.42
8.4.30.0170.01217.59
8.4.20.0130.00617.63
8.4.10.0210.00017.60
8.3.170.0030.00617.10
8.3.160.0190.00316.49
8.3.150.0150.00616.49
8.3.140.0160.00416.31
8.3.130.0190.00016.45
8.3.120.0190.00016.48
8.3.110.0190.00016.18
8.3.100.0160.00416.66
8.3.90.0180.00316.42
8.3.80.0170.00316.53
8.3.70.0170.00316.29
8.3.60.0190.00016.60
8.3.50.0180.00416.74
8.3.40.0130.00717.50
8.3.30.0130.00417.55
8.3.20.0140.00317.57
8.3.10.0160.00217.37
8.3.00.0050.00517.65
8.2.270.0190.00416.38
8.2.260.0240.00616.50
8.2.250.0180.00916.47
8.2.240.0160.00816.27
8.2.230.0180.00016.36
8.2.220.0140.00416.57
8.2.210.0100.00716.07
8.2.200.0130.00316.32
8.2.190.0170.00016.22
8.2.180.0160.00016.47
8.2.170.0150.00417.47
8.2.160.0130.00417.36
8.2.150.0140.00417.50
8.2.140.0200.00017.32
8.2.130.0130.00417.15
8.2.120.0180.00017.40
8.2.110.0170.00017.39
8.2.100.0110.00617.25
8.2.90.0190.00017.35
8.2.80.0160.00017.14
8.2.70.0080.00817.20
8.2.60.0140.00317.31
8.2.50.0170.00017.11
8.2.40.0100.00617.13
8.2.30.0140.00217.08
8.2.20.0120.00517.16
8.2.10.0130.00317.38
8.2.00.0160.00017.15

preferences:
139.44 ms | 1064 KiB | 8 Q