3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct(private ?string $name = null, private ?string $tag = null, private int $amount) {} } //new Foo(name: 'bar', amount: 123); new Foo('bar', 'tag', 123);

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.10.0110.00716.90
8.5.00.0130.00720.05
8.4.150.0020.00014.05
8.4.140.0150.00817.82
8.4.130.0120.00818.05
8.4.120.0150.00620.73
8.4.110.0110.00922.45
8.4.100.0160.00518.89
8.4.90.0140.00618.83
8.4.80.0110.00918.78
8.4.70.0090.01118.43
8.4.60.0090.01318.97
8.4.50.0100.00918.68
8.4.40.0030.00619.52
8.4.30.0130.00618.46
8.4.20.0100.01018.99
8.4.10.0040.00417.54
8.3.280.0110.00918.43
8.3.270.0090.01116.50
8.3.260.0120.00516.70
8.3.250.0100.00818.97
8.3.240.0100.00817.02
8.3.230.0100.00216.79
8.3.220.0120.00618.76
8.3.210.0040.00518.74
8.3.200.0050.00416.62
8.3.190.0130.00618.80
8.3.180.0120.00716.86
8.3.170.0160.00320.85
8.3.160.0120.00616.93
8.3.150.0110.00818.75
8.3.140.0150.00416.82
8.3.130.0060.00316.68
8.3.120.0120.00819.01
8.3.110.0060.00316.91
8.3.100.0090.00016.88
8.3.90.0040.00426.77
8.3.80.0070.00319.36
8.3.70.0040.01518.28
8.3.60.0120.00316.63
8.3.50.0100.00716.77
8.3.40.0150.00618.60
8.3.30.0000.01518.84
8.3.20.0110.00024.18
8.3.10.0080.00024.66
8.3.00.0000.00826.16
8.2.290.0120.00720.21
8.2.280.0090.00918.37
8.2.270.0160.00319.05
8.2.260.0040.00418.15
8.2.250.0060.01218.34
8.2.240.0090.00018.67
8.2.230.0030.00720.94
8.2.220.0060.00324.06
8.2.210.0070.00026.77
8.2.200.0100.00018.88
8.2.190.0110.00418.13
8.2.180.0110.00425.92
8.2.170.0090.00619.09
8.2.160.0140.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0060.00319.35
8.2.110.0080.00020.53
8.2.100.0060.00320.35
8.1.330.0140.00421.83
8.1.320.0130.00616.34
8.1.310.0030.00616.64
8.1.300.0150.00317.98
8.1.290.0030.00630.84
8.1.280.0170.00325.92
8.1.270.0020.00523.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00318.92
8.1.230.0060.00320.33
8.0.30.0100.00716.83
8.0.20.0210.00916.78
8.0.10.0120.00316.84
8.0.00.0120.00316.91
7.4.160.0120.01816.45
7.4.150.0230.00416.38
7.4.140.0080.00816.30
7.4.130.0070.00716.31
7.4.120.0040.01116.11
7.4.110.0100.01316.30
7.4.100.0120.00416.46
7.4.90.0070.00716.32
7.4.80.0150.00016.27
7.4.70.0080.00816.22
7.4.60.0110.01116.24
7.4.50.0060.01016.21
7.4.40.0130.00816.09
7.4.30.0080.00816.25
7.4.20.0170.00016.26
7.4.10.0000.01816.12
7.4.00.0030.01416.27
7.3.280.0150.01116.21
7.3.270.0150.00916.21
7.3.260.0120.00416.20
7.3.250.0080.00816.27
7.3.240.0100.01016.27
7.3.230.0130.00616.16
7.3.220.0130.00416.05
7.3.210.0060.00916.13
7.3.200.0100.00716.27
7.3.190.0090.01116.15
7.3.180.0000.01616.08
7.3.170.0120.00716.14
7.3.160.0090.00916.04
7.3.150.0100.00716.07
7.3.140.0070.00716.13
7.3.130.0060.00916.05
7.3.120.0000.01516.05
7.3.110.0000.01616.03
7.3.100.0040.01116.06
7.3.90.0100.00616.36
7.3.80.0120.00416.06
7.3.70.0120.00316.18
7.3.60.0040.01116.17
7.3.50.0070.00716.24
7.3.40.0110.00716.32
7.3.30.0060.00816.21
7.3.20.0340.00016.25
7.3.10.0600.01018.04
7.3.00.0030.01217.98

preferences:
41.89 ms | 403 KiB | 5 Q