3v4l.org

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

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.0090.01120.60
8.4.110.0070.00918.72
8.4.100.0150.00618.52
8.4.90.0120.00818.45
8.4.80.0060.00217.68
8.4.70.0090.01018.22
8.4.60.0130.00818.88
8.4.50.0090.00718.41
8.4.40.0130.00619.70
8.4.30.0130.00620.62
8.4.20.0080.00318.88
8.4.10.0110.00722.37
8.3.250.0090.01319.06
8.3.240.0110.00816.97
8.3.230.0070.00316.66
8.3.220.0040.00319.05
8.3.210.0140.00618.53
8.3.200.0080.00116.88
8.3.190.0030.00717.27
8.3.180.0110.00616.76
8.3.170.0110.00720.92
8.3.160.0140.00417.06
8.3.150.0090.00917.20
8.3.140.0070.01116.54
8.3.130.0060.00316.72
8.3.120.0120.00318.70
8.3.110.0050.00316.68
8.3.100.0040.00416.51
8.3.90.0060.00326.77
8.3.80.0030.00619.36
8.3.70.0150.00316.58
8.3.60.0150.00018.68
8.3.50.0140.00418.00
8.3.40.0070.00718.71
8.3.30.0040.01118.71
8.3.20.0030.00524.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.290.0110.00820.26
8.2.280.0100.00318.54
8.2.270.0140.00316.86
8.2.260.0040.00416.48
8.2.250.0030.00618.48
8.2.240.0050.00516.57
8.2.230.0050.00320.94
8.2.220.0090.00024.06
8.2.210.0100.01026.77
8.2.200.0030.00718.88
8.2.190.0090.01218.06
8.2.180.0040.01225.92
8.2.170.0070.01018.68
8.2.160.0070.01022.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0030.00726.16
8.2.120.0040.00720.35
8.2.110.0060.00320.15
8.2.100.0060.00318.75
8.1.330.0090.01022.07
8.1.320.0120.00716.14
8.1.310.0100.01016.75
8.1.300.0040.00416.23
8.1.290.0050.00530.84
8.1.280.0090.01625.92
8.1.270.0070.00023.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00618.54
8.1.230.0060.00318.30
8.0.30.0090.01116.91
8.0.20.0120.01217.03
8.0.10.0110.00716.92
8.0.00.0100.00817.00
7.4.160.0130.00616.47
7.4.150.0100.01016.32
7.4.140.0060.01116.26
7.4.130.0090.00916.24
7.4.120.0100.01216.28
7.4.110.0120.00916.27
7.4.100.0030.01416.39
7.4.90.0090.00816.24
7.4.80.0060.00916.22
7.4.70.0070.01516.29
7.4.60.0150.00616.13
7.4.50.0110.01016.25
7.4.40.0090.00816.21
7.4.30.0090.00616.21
7.4.20.0090.00616.22
7.4.10.0060.01216.29
7.4.00.0090.00916.28
7.3.270.0070.01216.13
7.3.260.0090.01016.13
7.3.250.0080.00816.18
7.3.240.0060.01116.20
7.3.230.0060.01116.18
7.3.220.0100.00416.13
7.3.210.0120.00616.07
7.3.200.0100.00816.11
7.3.190.0130.00716.14
7.3.180.0090.01016.10
7.3.170.0090.01116.06
7.3.160.0040.01216.05
7.3.150.0080.01016.08
7.3.140.0080.01016.11
7.3.130.0070.00916.13
7.3.120.0080.00916.11
7.3.110.0130.00616.05
7.3.100.0120.00716.00
7.3.90.0070.01016.38
7.3.80.0060.01416.08
7.3.70.0130.00716.17
7.3.60.0100.00916.19
7.3.50.0050.01516.21
7.3.40.0090.00816.18
7.3.30.0070.01116.21
7.3.20.0060.01116.25
7.3.10.0070.00916.20
7.3.00.0120.00516.22

preferences:
28.43 ms | 403 KiB | 5 Q