3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class FinalConstructFoo { final function __construct() { } public function doFoo(): void { new static(); } public static function staticDoFoo(): void { new static(); } } FinalConstructFoo::staticDoFoo();

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.0070.01023.95
8.4.110.0190.00117.71
8.4.100.0200.00217.48
8.4.90.0160.00617.48
8.4.80.0170.00518.05
8.4.70.0140.00617.66
8.4.60.0180.00417.59
8.4.50.0170.00517.66
8.4.40.0180.00417.35
8.4.30.0200.00417.20
8.4.20.0180.00417.46
8.4.10.0170.00517.43
8.3.250.0050.00317.17
8.3.240.0130.00616.42
8.3.230.0190.00116.07
8.3.220.0180.00216.63
8.3.210.0160.00616.63
8.3.200.0140.00516.47
8.3.190.0180.00316.30
8.3.180.0140.00816.43
8.3.170.0150.00616.48
8.3.160.0190.00516.42
8.3.150.0150.00716.64
8.3.140.0160.00716.72
8.3.130.0190.00616.21
8.3.120.0160.00516.45
8.3.110.0170.00416.65
8.3.100.0170.00516.54
8.3.90.0150.00616.57
8.3.80.0170.00516.32
8.3.70.0160.00416.61
8.3.60.0170.00416.71
8.3.50.0170.00516.68
8.3.40.0180.00417.21
8.3.30.0160.00317.52
8.3.20.0140.00317.55
8.3.10.0150.00317.52
8.3.00.0150.00417.36
8.2.290.0120.00416.72
8.2.280.0170.00216.37
8.2.270.0150.00416.58
8.2.260.0130.00716.48
8.2.250.0120.00516.47
8.2.240.0130.00316.51
8.2.230.0170.00116.20
8.2.220.0150.00216.32
8.2.210.0130.00616.52
8.2.200.0150.00316.43
8.2.190.0150.00416.84
8.2.180.0110.00516.54
8.2.170.0170.00317.45
8.2.160.0140.00617.39
8.2.150.0190.00217.45
8.2.140.0130.00717.21
8.2.130.0130.00517.21
8.2.120.0150.00517.47
8.2.110.0140.00417.51
8.2.100.0140.00317.32
8.2.90.0120.00617.56
8.2.80.0140.00517.44
8.2.70.0130.00417.31
8.2.60.0200.00317.43
8.2.50.0150.00417.69
8.2.40.0150.00317.43
8.2.30.0110.00617.23
8.2.20.0150.00217.27
8.2.10.0130.00417.20
8.2.00.0150.00417.24

preferences:
28.82 ms | 403 KiB | 5 Q