3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { readonly string $bar; public function __construct( readonly int $promotedProp ) { $this->bar = 'bar'; var_dump($this->promotedProp, $this->bar); } } new Foo(10);

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.60.0030.00516.69
8.5.50.0040.00816.66
8.5.30.0080.00919.52
8.5.20.0030.00421.84
8.5.10.0090.00820.22
8.5.00.0060.01519.96
8.4.180.0150.00721.97
8.4.170.0120.01020.41
8.4.160.0130.00823.76
8.4.150.0090.00316.90
8.4.140.0140.00617.45
8.4.130.0100.00718.67
8.4.120.0030.00624.18
8.4.110.0100.00918.96
8.4.100.0070.00319.02
8.4.90.0080.00420.54
8.4.80.0110.00918.84
8.4.70.0120.00717.78
8.4.60.0090.01018.87
8.4.50.0100.01018.60
8.4.40.0000.00918.36
8.4.30.0090.00920.55
8.4.20.0030.01617.89
8.4.10.0080.00823.69
8.3.300.0120.00820.80
8.3.290.0110.00920.86
8.3.280.0110.00920.10
8.3.270.0130.00816.70
8.3.260.0100.00916.81
8.3.250.0100.00818.87
8.3.240.0100.00917.20
8.3.230.0140.00616.66
8.3.220.0080.00718.85
8.3.210.0090.01016.50
8.3.200.0110.00816.54
8.3.190.0050.00516.93
8.3.180.0050.00517.15
8.3.170.0070.00718.85
8.3.160.0070.01118.47
8.3.150.0140.00417.10
8.3.140.0180.00016.50
8.3.130.0030.00718.56
8.3.120.0030.00621.02
8.3.110.0090.00018.33
8.3.100.0050.00318.21
8.3.50.0040.00418.43
8.2.300.0100.01022.18
8.2.290.0120.00620.24
8.2.280.0110.00618.43
8.2.270.0140.00417.32
8.2.260.0110.00716.83
8.2.250.0080.00016.62
8.2.240.0050.00318.85
8.2.230.0090.00018.11
8.2.220.0000.00818.36
8.2.50.0130.01318.10
8.2.40.0060.01218.10
8.2.30.0140.00518.10
8.2.20.0060.01218.71
8.2.10.0170.00318.84
8.2.00.0110.00718.10
8.1.340.0140.00617.71
8.1.330.0100.00521.95
8.1.320.0060.01220.17
8.1.310.0070.01116.31
8.1.300.0060.00320.16
8.1.180.0170.00218.10
8.1.170.0130.00518.10
8.1.160.0110.00718.10
8.1.150.0040.01318.10
8.1.140.0080.01018.10
8.1.130.0130.00618.10
8.1.120.0140.00618.10
8.1.110.0170.00018.10
8.1.100.0100.01018.10
8.1.90.0110.00718.10
8.1.80.0080.01118.10
8.1.70.0140.00718.10
8.1.60.0120.00819.01
8.1.50.0170.00218.10
8.1.40.0080.01118.10
8.1.30.0140.00518.10
8.1.20.0160.00318.10
8.1.10.0210.00018.10
8.1.00.0190.00018.10
8.0.280.0060.01218.22
8.0.270.0130.00318.10
8.0.260.0160.00318.10
8.0.250.0000.01518.10
8.0.240.0120.00618.10
8.0.230.0180.00018.37
8.0.220.0110.00718.10
8.0.210.0140.00318.10
8.0.200.0190.00418.17
8.0.190.0080.00818.10
8.0.180.0090.00918.10
8.0.170.0150.00218.10
8.0.160.0120.00418.10
8.0.150.0120.00418.10
8.0.140.0090.00918.10
8.0.130.0150.00418.10
8.0.120.0180.00018.10
8.0.110.0120.00418.10
8.0.100.0130.00318.10
8.0.90.0120.00518.10
8.0.80.0060.01218.10
8.0.70.0000.01718.10
8.0.60.0150.00318.10
8.0.50.0140.00518.10
8.0.30.0140.00518.10
8.0.20.0160.00018.10
8.0.10.0110.00518.10

preferences:
45.4 ms | 946 KiB | 5 Q