3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { protected readonly int $foo; } class Ex extends Base { public function __construct() { $this->foo = 123; } } new Ex();

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.0.130.0170.00216.73
8.0.120.0140.00316.61
8.0.110.0130.00416.70
8.0.100.0180.00016.88
8.0.90.0090.00916.82
8.0.80.0180.00016.75
8.0.70.0140.00516.64
8.0.60.0120.00616.74
8.0.50.0100.01016.68
8.0.30.0150.00616.83
8.0.20.0100.00516.72
8.0.10.0150.00216.76
8.0.00.0050.00516.92
7.4.260.0080.01216.40
7.4.250.0170.00416.45
7.4.240.0170.00316.25
7.4.230.0070.01516.30
7.4.220.0140.00416.34
7.4.210.0090.00916.30
7.4.200.0110.00716.27
7.4.190.0140.00516.44
7.4.180.0110.00716.43
7.4.160.0110.00716.36
7.4.150.0150.00416.15
7.4.140.0130.00616.23
7.4.130.0110.00716.32
7.4.120.0060.01216.21
7.4.110.0100.00716.25
7.4.100.0120.00616.29
7.4.90.0130.00516.27
7.4.80.0160.00216.11
7.4.70.0140.00516.16
7.4.60.0170.00016.15
7.4.50.0110.00716.10
7.4.40.0180.00016.02
7.4.30.0110.00616.10
7.4.20.0110.00716.25
7.4.10.0150.00316.22
7.4.00.0110.00616.10
7.3.330.0150.00316.18
7.3.320.0160.00316.04
7.3.310.0130.00415.97
7.3.300.0150.00316.06
7.3.290.0180.00016.19
7.3.280.0120.00516.25
7.3.270.0150.00415.98
7.3.260.0120.00316.06
7.3.250.0120.00615.93
7.3.240.0170.00416.04
7.3.230.0120.00315.98
7.3.220.0150.00316.05
7.3.210.0200.00016.17
7.3.200.0050.00716.01
7.3.190.0170.00016.08
7.3.180.0180.00016.11
7.3.170.0130.00316.11
7.3.160.0120.00615.98
7.3.150.0050.00515.93
7.3.140.0070.00316.12
7.3.130.0080.00416.14
7.3.120.0080.00415.80
7.3.110.0140.00616.07
7.3.100.0160.00316.07
7.3.90.0110.00716.41
7.3.80.0200.00015.89
7.3.70.0170.00316.11
7.3.60.0140.00416.15
7.3.50.0200.00015.98
7.3.40.0140.00616.23
7.3.30.0140.00416.01
7.3.20.0000.01018.18
7.3.10.0140.00618.07
7.3.00.0030.00617.81

preferences:
128.05 ms | 1398 KiB | 7 Q