3v4l.org

run code in 300+ PHP versions simultaneously
<?php $args = [ ...['z' => 2, 'x' => 3], ...['y' => 1, 'x' => 4], ]; class Foo { public function __construct(int $x, int $y, int $z) { echo <<<OUTPUT x = $x y = $y z = $z OUTPUT; } } new Foo(...$args);

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.130.0130.00817.77
8.4.120.0100.00724.02
8.4.110.0110.00719.75
8.4.100.0120.00718.61
8.4.90.0090.00720.66
8.4.80.0100.01018.56
8.4.70.0070.01518.85
8.4.60.0090.01218.81
8.4.50.0100.01118.93
8.4.40.0030.00717.69
8.4.30.0160.00320.42
8.4.20.0100.01019.41
8.4.10.0060.00317.55
8.3.260.0110.00816.46
8.3.250.0110.00719.06
8.3.240.0130.00617.20
8.3.230.0120.00716.31
8.3.220.0110.00719.00
8.3.210.0100.00616.57
8.3.200.0040.00516.79
8.3.190.0120.00817.24
8.3.180.0090.01018.53
8.3.170.0000.00816.74
8.3.160.0130.00617.13
8.3.150.0110.00718.84
8.3.140.0070.01319.00
8.3.130.0000.00818.53
8.3.120.0080.00820.68
8.3.110.0030.00622.58
8.3.100.0080.00022.58
8.3.90.0060.00322.58
8.3.50.0000.00922.58
8.2.290.0120.00617.04
8.2.280.0090.00918.45
8.2.270.0070.01416.86
8.2.260.0100.00716.60
8.2.250.0110.00718.50
8.2.240.0090.00917.14
8.2.230.0060.00322.58
8.2.220.0100.00622.58
8.2.210.0070.00322.58
8.2.30.0040.00418.02
8.1.330.0100.00921.94
8.1.320.0140.00517.86
8.1.310.0060.00318.05
8.1.300.0120.00916.16
8.1.150.0090.00317.30
8.1.140.0060.00717.41
8.1.110.0110.00317.33
8.1.50.0100.00417.50
8.1.30.0110.00517.61
8.1.20.0160.01017.59
8.1.10.0260.00017.39
8.1.00.0270.00017.40
8.0.280.0050.00416.74
8.0.180.0060.00616.82
8.0.170.0080.00616.79
8.0.160.0140.00516.73
8.0.150.0140.00716.66
8.0.140.0080.01216.62
8.0.130.0110.01116.71
8.0.120.0200.00016.81
8.0.110.0180.00316.61
8.0.100.0120.01216.68
8.0.90.0230.00316.82
8.0.80.0160.00816.80
8.0.70.0180.00616.74
8.0.60.0170.00616.81
8.0.50.0150.00716.70
8.0.30.0180.00516.57
8.0.20.0180.00416.81
8.0.10.0160.00516.96
7.4.280.0140.01016.46
7.4.270.0260.00016.28
7.4.260.0200.00316.43
7.4.250.0210.00316.43
7.4.240.0180.00616.25
7.4.230.0180.00716.34
7.4.220.0180.00316.42
7.4.210.0210.00016.45
7.4.200.0150.00516.32
7.4.190.0150.00716.36
7.4.180.0130.00816.37
7.4.160.0200.00016.39
7.4.150.0130.00616.34
7.4.140.0180.00416.29
7.4.130.0180.00516.15
7.4.120.0200.00016.23
7.4.110.0100.01016.23
7.4.100.0140.00616.22
7.4.90.0150.00516.16
7.4.80.0100.00916.18
7.4.70.0110.00816.24
7.4.60.0120.00916.26
7.4.50.0190.00216.08
7.4.40.0180.00316.23
7.4.30.0180.00616.21
7.4.20.0170.00616.26
7.4.10.0160.00816.28
7.4.00.0190.00616.17

preferences:
53.5 ms | 403 KiB | 5 Q