3v4l.org

run code in 500+ PHP versions simultaneously
<?php #[Attribute(Attribute::TARGET_PROPERTY)] class AT { public function __construct($mixed){} } class dto { #[AT([ new AT() ])] private $p; }

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.70.0090.00816.77
8.5.60.0120.00816.54
8.5.50.0090.00916.64
8.5.30.0120.00518.86
8.5.20.0100.00721.18
8.5.10.0080.00920.14
8.5.00.0140.01122.83
8.4.220.0150.00719.39
8.4.210.0120.00521.21
8.4.180.0070.00419.66
8.4.170.0140.00823.88
8.4.160.0140.00823.98
8.4.150.0060.00616.86
8.4.140.0110.01017.34
8.4.130.0120.00717.51
8.4.120.0080.00820.70
8.4.110.0100.01022.40
8.4.100.0140.00717.70
8.4.90.0060.00317.53
8.4.80.0150.00517.57
8.4.70.0060.00217.71
8.4.60.0110.00918.44
8.4.50.0080.01319.45
8.4.40.0100.01019.47
8.4.30.0050.00618.55
8.4.20.0070.01317.64
8.4.10.0000.00817.23
8.3.310.0090.01120.09
8.3.300.0130.00720.80
8.3.290.0130.00720.73
8.3.280.0100.01018.39
8.3.270.0090.01016.66
8.3.260.0130.00616.38
8.3.250.0100.00918.70
8.3.240.0090.00516.41
8.3.230.0100.00816.57
8.3.220.0090.00917.03
8.3.210.0100.00816.80
8.3.200.0140.00616.41
8.3.190.0090.00617.05
8.3.180.0120.00818.23
8.3.170.0090.00916.63
8.3.160.0150.00316.56
8.3.150.0110.00717.02
8.3.140.0030.00516.35
8.3.130.0060.01116.18
8.3.50.0140.00416.36
8.2.300.0120.01017.95
8.2.290.0100.00920.20
8.2.280.0060.00220.46
8.2.270.0030.01616.45
8.2.260.0000.00816.24
8.2.250.0030.01516.48
8.1.340.0030.00521.56
8.1.330.0120.00618.23
8.1.320.0120.00815.87
8.1.310.0040.00416.10
8.1.80.0040.00817.28
8.1.70.0080.00717.20
8.1.60.0140.00617.42
8.1.50.0160.00317.26
8.1.40.0140.00317.38
8.1.30.0170.00217.44
8.1.20.0150.00317.38
8.1.10.0150.00317.29
8.1.00.0150.00317.30
8.0.210.0040.00516.74
8.0.200.0140.00116.74
8.0.190.0150.00016.82
8.0.180.0100.00616.79
8.0.170.0070.00716.67
8.0.160.0080.00816.78
8.0.150.0110.00516.64
8.0.140.0110.00316.74
8.0.130.0110.00516.66
8.0.120.0120.00316.82
8.0.110.0120.00216.76
8.0.100.0120.00216.74
8.0.90.0100.00516.71
8.0.80.0080.00616.82
8.0.70.0110.00416.78
8.0.60.0130.00116.73
8.0.50.0130.00316.80
8.0.30.0080.00616.74
8.0.20.0100.00616.80
8.0.10.0100.00216.86
7.4.300.0080.00316.33
7.4.290.0130.00416.39
7.4.280.0130.00316.32
7.4.270.0090.00416.30
7.4.260.0060.00916.28
7.4.250.0120.00316.39
7.4.240.0080.00616.24
7.4.230.0070.00716.37
7.4.220.0090.00616.32
7.4.210.0110.00616.34
7.4.200.0100.00616.31
7.4.190.0110.00416.37
7.4.180.0120.00216.45
7.4.160.0120.00316.39
7.4.150.0060.00616.33
7.4.140.0120.00216.22
7.4.130.0080.00616.22
7.4.120.0110.00316.12
7.4.110.0110.00416.22
7.4.100.0110.00416.41
7.4.90.0110.00416.28
7.4.80.0070.00716.23
7.4.70.0110.00416.23
7.4.60.0120.00216.20
7.4.50.0090.00516.20
7.4.40.0110.00216.16
7.4.30.0100.00316.23
7.4.20.0120.00316.20
7.4.10.0110.00416.22
7.4.00.0110.00416.25

preferences:
73.04 ms | 959 KiB | 5 Q