3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HelloWorld { readonly public string $say; public function __construct() { $this->say = 'Hello World'; } } class HelloNewWorld extends HelloWorld { readonly public string $say; public function __construct() { $this->say = 'Hello New World'; } } echo (new HelloWorld())->say . PHP_EOL; echo (new HelloNewWorld())->say . PHP_EOL;

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.120.0150.00620.37
8.4.110.0130.00718.98
8.4.100.0100.00617.47
8.4.90.0070.00217.89
8.4.80.0060.00217.68
8.4.70.0100.00919.70
8.4.60.0140.00718.67
8.4.50.0040.00418.51
8.4.40.0070.01317.68
8.4.30.0100.00718.91
8.4.20.0270.02017.63
8.4.10.0190.00819.32
8.3.250.0120.00618.86
8.3.240.0120.00716.68
8.3.230.0160.00216.56
8.3.220.0130.00617.34
8.3.210.0080.01016.64
8.3.200.0060.00516.47
8.3.190.0080.01017.02
8.3.180.0080.01017.32
8.3.170.0090.00917.04
8.3.160.0130.00618.41
8.3.150.0090.00018.40
8.3.140.0230.00016.61
8.3.130.0180.00016.28
8.3.120.0140.00516.71
8.3.110.0130.00616.60
8.3.100.0160.00816.25
8.3.90.0230.00016.43
8.3.80.0220.00016.32
8.3.70.0180.00216.47
8.3.60.0150.00616.33
8.3.50.0160.00516.23
8.3.40.0120.00617.38
8.3.30.0160.00017.30
8.3.20.0180.00417.30
8.3.10.0150.00417.22
8.3.00.0030.00717.47
8.2.290.0110.00719.05
8.2.280.0090.01018.17
8.2.270.0070.00017.45
8.2.260.0070.01016.39
8.2.250.0130.00316.29
8.2.240.0110.00716.50
8.2.230.0170.00616.30
8.2.220.0200.01016.47
8.2.210.0290.00616.28
8.2.200.0270.01216.76
8.2.190.0330.00616.26
8.2.180.0310.00816.57
8.2.170.0300.01917.71
8.2.160.0310.01017.57
8.2.150.0360.01017.53
8.2.140.0450.00017.25
8.2.130.0290.00017.36
8.2.120.0130.00517.71
8.2.110.0140.00517.45
8.2.100.0280.01217.57
8.2.90.0380.00417.66
8.2.80.0360.00417.13
8.2.70.0230.01617.34
8.2.60.0240.01617.24
8.2.50.0240.01017.42
8.2.40.0250.00417.64
8.2.30.0080.00817.58
8.2.20.0060.01117.24
8.2.10.0240.01217.17
8.2.00.0340.00317.22
8.1.320.0100.00917.91

preferences:
26.87 ms | 403 KiB | 5 Q