3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { public readonly int $uid; public function __construct(int $uid) { $this->uid = $uid; } } $user = new User(42); $user->__construct(43);

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.3.130.0150.00318.58
8.3.120.0060.00318.55
8.3.50.0040.01118.45
8.2.250.0110.00718.43
8.2.240.0080.00016.62
8.1.300.0100.01018.00
8.1.120.0000.00717.29
8.1.110.0120.00417.39
8.1.100.0050.00817.25
8.1.90.0100.00017.30
8.1.80.0130.00017.31
8.1.70.0110.00417.38
8.1.60.0100.00717.55
8.1.50.0130.00317.53
8.1.40.0110.00717.46
8.1.30.0100.00717.61
8.1.20.0000.01617.61
8.1.10.0050.01417.61
8.1.00.0100.00817.43
8.0.250.0070.00016.82
8.0.240.0000.00716.78
8.0.230.0160.00016.90
8.0.220.0150.00216.93
8.0.210.0140.00016.88
8.0.200.0100.00516.85
8.0.190.0120.00316.84
8.0.180.0100.00616.85
8.0.170.0130.00216.71
8.0.160.0120.00416.78
8.0.150.0150.00016.62
8.0.140.0150.00016.82
8.0.130.0070.00716.79
8.0.120.0120.00316.80
8.0.110.0100.00316.87
8.0.100.0030.01216.85
8.0.90.0150.00016.76
8.0.80.0120.00316.82
8.0.70.0120.00316.61
8.0.60.0070.00716.82
8.0.50.0110.00416.76
8.0.30.0130.00216.78
8.0.20.0080.00816.81
8.0.10.0120.00316.88
7.4.320.0040.00816.32
7.4.300.0170.00016.33
7.4.290.0170.00016.25
7.4.280.0160.00016.33
7.4.270.0110.00616.36
7.4.260.0160.00016.37
7.4.250.0100.00716.41
7.4.240.0150.00016.41
7.4.230.0130.00316.41
7.4.220.0090.00516.44
7.4.210.0040.00916.25
7.4.200.0140.00016.42
7.4.190.0130.00016.26
7.4.180.0090.00616.45
7.4.160.0070.00716.29
7.4.150.0100.00316.19
7.4.140.0110.00316.34
7.4.130.0060.00916.31
7.4.120.0110.00416.30
7.4.110.0110.00316.29
7.4.100.0070.00416.36
7.4.90.0080.00416.21
7.4.80.0100.00316.14
7.4.70.0120.00216.26
7.4.60.0110.00016.13
7.4.50.0030.00516.14
7.4.40.0040.00416.07
7.4.30.0040.00416.23
7.4.20.0070.00216.07
7.4.10.0100.00016.11
7.4.00.0040.00416.18

preferences:
42.77 ms | 403 KiB | 5 Q