3v4l.org

run code in 500+ PHP versions simultaneously
<?php final class Foo { private string $prop; public function __construct( private readonly string $prop ) {} }

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.130.0420.00817.46
8.4.120.0430.01017.34
8.4.110.0350.00917.39
8.4.100.0390.00717.74
8.4.90.0470.00917.67
8.4.80.0380.00817.84
8.4.70.0380.00917.66
8.4.60.0450.00917.71
8.4.50.0450.00917.47
8.4.40.0460.00917.48
8.4.30.0270.01317.34
8.4.20.0340.00817.41
8.4.10.0240.00617.44
8.3.260.0330.00916.40
8.3.250.0280.00616.50
8.3.240.0310.00916.44
8.3.230.0300.00616.53
8.3.220.0300.01216.43
8.3.210.0290.00616.58
8.3.200.0300.00716.42
8.3.190.0330.00616.46
8.3.180.0360.00616.56
8.3.170.0430.01116.52
8.3.160.0440.01016.49
8.3.150.0220.00516.56
8.3.140.0180.00616.53
8.3.130.0240.00416.55
8.3.120.0270.00716.34
8.3.110.0170.00616.37
8.3.100.0460.00616.54
8.3.90.0290.00716.40
8.3.80.0340.00816.53
8.3.70.0370.00816.41
8.3.60.0370.00816.22
8.3.50.0450.00716.19
8.3.40.0430.00917.33
8.3.30.0310.00917.38
8.3.20.0270.00517.46
8.3.10.0250.01017.29
8.3.00.0300.00617.33
8.2.290.0230.00916.37
8.2.280.0170.00616.35
8.2.270.0170.00516.27
8.2.260.0230.00616.12
8.2.250.0270.00716.21
8.2.240.0220.00516.36
8.2.230.0240.00516.10
8.2.220.0230.00616.21
8.2.210.0240.00716.40
8.2.200.0240.00816.26
8.2.190.0280.00616.30
8.2.180.0260.00816.40
8.2.170.0310.00517.43
8.2.160.0280.00517.52
8.2.150.0260.00817.51
8.2.140.0280.00417.22
8.2.130.0240.00617.25
8.2.120.0200.00417.39
8.2.110.0260.00617.29
8.2.100.0170.00517.39
8.2.90.0200.00717.53
8.2.80.0270.00817.29
8.2.70.0250.00817.25
8.2.60.0250.00817.36
8.2.50.0270.01017.15
8.2.40.0280.00617.20
8.2.30.0180.00717.22
8.2.20.0270.00517.23
8.2.10.0240.00717.08
8.2.00.0210.00817.25

preferences:
51.96 ms | 780 KiB | 4 Q