3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public function __construct( public readonly string $myString, public readonly int $myInt, public readonly array $myArray ) {} } $arr = [ 'myString' => "I am a string", 'myInt' => 123, 'myArray' => [], ]; new TestClass(...$arr);

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.5.00.0100.01120.04
8.4.150.0020.00114.05
8.4.140.0110.00917.54
8.4.130.0140.00617.93
8.4.120.0110.00820.57
8.4.110.0120.00722.23
8.4.100.0130.00817.86
8.4.90.0130.00817.51
8.4.80.0060.00317.75
8.4.70.0040.00417.68
8.4.60.0100.01018.90
8.4.50.0100.01019.66
8.4.40.0000.00920.47
8.4.30.0030.00620.78
8.4.20.0030.01217.76
8.4.10.0120.00423.65
8.3.280.0190.00818.22
8.3.270.0150.00516.45
8.3.260.0090.01116.52
8.3.250.0100.00618.63
8.3.240.0110.00816.48
8.3.230.0140.00516.56
8.3.220.0110.00819.06
8.3.210.0120.00716.61
8.3.200.0040.00516.55
8.3.190.0090.00916.52
8.3.180.0050.00316.85
8.3.170.0120.00618.82
8.3.160.0040.01416.48
8.3.150.0110.00317.14
8.3.140.0080.00020.64
8.3.130.0130.00718.45
8.3.120.0060.00318.86
8.3.110.0030.00622.58
8.3.100.0080.00022.58
8.3.50.0040.00422.58
8.2.290.0110.00820.37
8.2.280.0110.00719.87
8.2.270.0150.00416.61
8.2.260.0030.00620.80
8.2.250.0040.00416.88
8.2.240.0050.00317.02
8.2.230.0100.00322.58
8.2.220.0060.00322.58
8.2.40.0080.00618.33
8.2.30.0130.00317.72
8.2.20.0120.00517.72
8.2.10.0130.00417.72
8.2.00.0100.00717.72
8.1.330.0120.00316.66
8.1.320.0090.01116.20
8.1.310.0000.00816.56
8.1.300.0100.00617.97
8.1.170.0080.00418.49
8.1.160.0120.00617.72
8.1.150.0120.00417.72
8.1.140.0080.00817.72
8.1.130.0100.00517.72
8.1.120.0130.00417.72
8.1.110.0180.00017.72
8.1.100.0130.00317.72
8.1.90.0120.00317.72
8.1.80.0100.00517.72
8.1.70.0140.00517.72
8.1.60.0090.00917.72
8.1.50.0100.00717.72
8.1.40.0120.00417.72
8.1.30.0130.00417.72
8.1.20.0090.00917.72
8.1.10.0150.00317.72
8.1.00.0120.00617.72
8.0.280.0120.00417.72
8.0.270.0160.00017.72
8.0.260.0120.00317.72
8.0.250.0150.00017.72
8.0.240.0150.00017.72
8.0.230.0150.00017.72
8.0.220.0150.00417.72
8.0.210.0140.00317.72
8.0.200.0050.01017.72
8.0.190.0160.00017.72
8.0.180.0150.00017.72
8.0.170.0150.00017.72
8.0.160.0150.00017.72
8.0.150.0060.00917.72
8.0.140.0080.00817.72
8.0.130.0150.00017.72
8.0.120.0090.00717.72
8.0.110.0110.00417.72
8.0.100.0110.00417.72
8.0.90.0150.00017.72
8.0.80.0090.00617.72
8.0.70.0130.00317.72
8.0.60.0090.00717.72
8.0.50.0130.00317.72
8.0.30.0040.01117.72
8.0.20.0160.00017.72
8.0.10.0100.00517.72

preferences:
66.05 ms | 403 KiB | 5 Q