3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PromoteConstructorProperty { public function __construct( public string $var ) { } } $bool = class_exists(PromoteConstructorProperty::class);

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.120.0100.00820.45
8.4.110.0100.00918.88
8.4.100.0090.01117.71
8.4.90.0150.00618.61
8.4.80.0160.00517.57
8.4.70.0050.00317.72
8.4.60.0110.00819.01
8.4.50.0130.00719.40
8.4.40.0190.00019.32
8.4.30.0140.00720.30
8.4.20.0080.00018.99
8.4.10.0090.00922.32
8.3.250.0090.01018.46
8.3.240.0130.00616.30
8.3.230.0100.00816.39
8.3.220.0140.00517.30
8.3.210.0090.00516.66
8.3.200.0070.00216.75
8.3.190.0090.00917.19
8.3.180.0070.00816.64
8.3.170.0090.00918.79
8.3.160.0140.00418.24
8.3.150.0120.00620.59
8.3.140.0040.01216.35
8.3.130.0000.01018.36
8.3.120.0040.01120.73
8.3.110.0080.00020.94
8.3.100.0040.00424.06
8.3.90.0050.00326.77
8.3.80.0090.00019.36
8.3.70.0110.00716.58
8.3.60.0110.00418.30
8.3.50.0140.00417.92
8.3.40.0100.01018.50
8.3.30.0070.00718.55
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0110.00820.23
8.2.280.0080.01218.12
8.2.270.0120.00317.15
8.2.260.0090.00920.59
8.2.250.0030.00516.84
8.2.240.0060.00317.12
8.2.230.0100.00022.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0030.00618.88
8.2.190.0070.01118.42
8.2.180.0090.00625.92
8.2.170.0120.00318.79
8.2.160.0140.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00326.16
8.2.120.0000.00826.35
8.2.110.0090.00020.47
8.2.100.0100.00018.77
8.1.330.0090.00221.33
8.1.320.0090.01016.04
8.1.310.0050.00316.59
8.1.300.0090.00020.07
8.1.290.0040.00430.84
8.1.280.0100.00725.92
8.1.270.0070.00023.99
8.1.260.0050.00328.09
8.1.250.0000.00728.09
8.1.240.0080.00318.55
8.1.230.0030.00618.45
8.1.100.0090.00517.32
8.0.170.0060.00516.83
8.0.30.0120.00716.80
8.0.20.0090.00916.84
8.0.10.0100.00916.94
8.0.00.0050.01316.96
7.4.160.0070.01116.37
7.4.150.0110.00816.35
7.4.140.0100.00616.29
7.4.130.0080.00916.20
7.4.120.0090.00916.26
7.4.110.0090.01016.25
7.4.100.0080.01016.33
7.4.90.0080.01016.24
7.4.80.0100.00816.21
7.4.70.0060.01016.24
7.4.60.0090.00716.22
7.4.50.0100.00816.20
7.4.40.0110.00816.16
7.4.30.0110.00716.33
7.4.20.0090.01016.22
7.4.10.0090.00916.24
7.4.00.0070.01116.35
7.3.270.0100.00716.14
7.3.260.0100.00816.15
7.3.250.0070.01116.18
7.3.240.0110.00916.17
7.3.230.0070.01016.17
7.3.220.0100.00716.11
7.3.210.0090.01016.12
7.3.200.0060.01116.08
7.3.190.0100.00716.12
7.3.180.0130.00316.10
7.3.170.0090.00816.10
7.3.160.0100.00916.13
7.3.150.0140.00516.07
7.3.140.0080.01016.10
7.3.130.0090.00916.12
7.3.120.0110.00916.11
7.3.110.0100.00816.02
7.3.100.0080.01016.05
7.3.90.0080.00816.33
7.3.80.0120.00616.11
7.3.70.0080.01016.20
7.3.60.0090.00916.17
7.3.50.0080.00916.22
7.3.40.0070.01016.24
7.3.30.0120.00516.23
7.3.20.0340.01016.22
7.3.10.0100.00716.18
7.3.00.0080.01016.19

preferences:
27.55 ms | 403 KiB | 5 Q