3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function __construct( protected readonly string $id ){} function dumb():string{ echo strtoupper($this->id); } } class B extends A{ function __construct( protected readonly int $id ){} }

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.50.0390.01117.51
8.4.40.0380.00617.66
8.4.30.0340.00517.57
8.4.20.0240.00617.59
8.4.10.0240.00517.68
8.3.190.0300.00716.61
8.3.180.0340.00916.54
8.3.170.0310.00516.39
8.3.160.0350.00916.14
8.3.150.0260.00616.34
8.3.140.0290.00616.30
8.3.130.0130.00716.39
8.3.120.0160.00516.27
8.3.110.0140.00616.04
8.3.100.0190.00116.54
8.3.90.0150.00516.63
8.3.80.0190.00216.47
8.3.70.0310.01216.38
8.3.60.0270.01116.54
8.3.50.0190.00216.63
8.3.40.0160.00717.10
8.3.30.0260.00817.23
8.3.20.0260.01217.16
8.3.10.0340.00817.22
8.3.00.0150.00817.49
8.2.280.0320.00816.72
8.2.270.0280.00616.76
8.2.260.0290.01016.23
8.2.250.0300.01016.33
8.2.240.0420.00716.37
8.2.230.0310.00916.43
8.2.220.0290.00916.24
8.2.210.0310.00916.13
8.2.200.0350.00716.54
8.2.190.0330.00816.50
8.2.180.0340.00616.31
8.2.170.0330.00917.50
8.2.160.0300.01217.61
8.2.150.0250.00917.43
8.2.140.0400.00717.33
8.2.130.0360.00717.36
8.2.120.0290.00817.55
8.2.110.0370.00617.59
8.2.100.0280.00817.46
8.2.90.0330.00717.58
8.2.80.0300.01117.46
8.2.70.0310.01117.57
8.2.60.0290.00917.40
8.2.50.0290.01217.24
8.2.40.0350.00417.55
8.2.30.0330.01017.37
8.2.20.0360.01017.44
8.2.10.0330.00617.15
8.2.00.0310.00817.34

preferences:
131.53 ms | 995 KiB | 7 Q