3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Wagon {} class Train { public function __construct(array $wagons) { $this->wagons = ($guard = function (Wagon ...$wagons) { return $wagons; })(...$wagons); } } var_dump(new Train([new Wagon, new Wagon, new Wagon]));

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.3.70.0070.00718.55
8.3.60.0090.00617.00
8.3.50.0070.01421.99
8.3.40.0000.01518.90
8.3.30.0060.00918.79
8.3.20.0070.00020.21
8.3.10.0040.00423.36
8.3.00.0050.00319.84
8.2.190.0110.01116.63
8.2.180.0110.00718.32
8.2.170.0150.00022.96
8.2.160.0060.00920.35
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00320.94
8.2.120.0040.00426.35
8.2.110.0080.00020.39
8.2.100.0100.00317.80
8.2.90.0050.00319.19
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0050.00317.93
8.2.50.0030.00518.07
8.2.40.0050.00321.00
8.2.30.0030.00520.58
8.2.20.0040.00417.69
8.2.10.0000.00817.97
8.2.00.0040.00418.02
8.1.280.0120.00625.92
8.1.270.0030.00620.64
8.1.260.0020.00528.09
8.1.250.0040.00428.09
8.1.240.0080.00022.05
8.1.230.0040.00717.70
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0080.00017.23
8.1.180.0080.00018.10
8.1.170.0060.00318.52
8.1.160.0070.00020.70
8.1.150.0040.00418.86
8.1.140.0000.00919.60
8.1.130.0000.00817.70
8.1.120.0040.00417.41
8.1.110.0030.00417.48
8.1.100.0040.00417.45
8.1.90.0040.00417.45
8.1.80.0080.00017.46
8.1.70.0070.00017.42
8.1.60.0060.00317.52
8.1.50.0000.00917.52
8.1.40.0000.00817.54
8.1.30.0080.00017.64
8.1.20.0080.00017.62
8.1.10.0040.00417.66
8.1.00.0000.00717.50
8.0.300.0050.00218.77
8.0.290.0020.00516.63
8.0.280.0040.00418.49
8.0.270.0000.00817.36
8.0.260.0030.00317.26
8.0.250.0040.00416.85
8.0.240.0000.00816.86
8.0.230.0040.00416.89
8.0.220.0030.00516.90
8.0.210.0030.00616.84
8.0.200.0000.00816.83
8.0.190.0000.00716.99
8.0.180.0000.01016.81
8.0.170.0080.00016.97
8.0.160.0030.00316.80
8.0.150.0000.00716.80
8.0.140.0050.00316.89
8.0.130.0050.00013.33
8.0.120.0050.00316.89
8.0.110.0030.00516.93
8.0.100.0000.00716.72
8.0.90.0050.00316.80
8.0.80.0160.00316.84
8.0.70.0070.00016.79
8.0.60.0040.00416.78
8.0.50.0000.00816.75
8.0.30.0110.00717.15
8.0.20.0080.01217.40
8.0.10.0040.00417.09
8.0.00.0100.00816.80
7.4.330.0000.00516.91
7.4.320.0030.00316.61
7.4.300.0040.00416.59
7.4.290.0070.00016.56
7.4.280.0030.00516.36
7.4.270.0070.00016.59
7.4.260.0000.00716.52
7.4.250.0020.00516.59
7.4.240.0020.00516.56
7.4.230.0080.00016.64
7.4.220.0130.01016.52
7.4.210.0070.00716.70
7.4.200.0000.00716.64
7.4.160.0100.00716.48
7.4.150.0110.00717.40
7.4.140.0120.01017.86
7.4.130.0090.00916.45
7.4.120.0060.01216.53
7.4.110.0070.01116.56
7.4.100.0100.00716.66
7.4.90.0110.00816.49
7.4.80.0130.01019.39
7.4.70.0070.01716.50
7.4.60.0120.00916.45
7.4.50.0070.01016.46
7.4.40.0160.00316.41
7.4.30.0090.00916.46
7.4.00.0110.00715.14
7.3.330.0000.00713.30
7.3.320.0050.00013.19
7.3.310.0040.00416.09
7.3.300.0040.00416.38
7.3.290.0090.00616.30
7.3.280.0120.00516.31
7.3.270.0120.00417.40
7.3.260.0150.00316.48
7.3.250.0060.01216.35
7.3.240.0100.00916.36
7.3.230.0080.00816.48
7.3.210.0090.00916.30
7.3.200.0160.00316.46
7.3.190.0080.00916.47
7.3.180.0170.00016.58
7.3.170.0070.01016.39
7.3.160.0100.00716.37
7.2.330.0110.01116.26
7.2.320.0060.01216.71
7.2.310.0040.01316.56
7.2.300.0100.00716.66
7.2.290.0130.01016.43
7.2.60.0080.00616.71
7.2.00.0000.01819.36
7.1.200.0030.01015.70
7.1.100.0520.00416.19
7.1.70.0030.00617.10
7.1.60.0100.01019.13
7.1.50.0070.00416.65
7.1.00.0100.06322.57
7.0.200.0030.00616.70
7.0.60.0200.04720.05
7.0.50.0070.04317.96
7.0.40.0100.08320.02
7.0.30.0230.05720.20
7.0.20.0330.06720.13
7.0.10.0130.08320.30
7.0.00.0000.07020.25
5.6.280.0070.03020.82
5.6.210.0030.09020.65
5.6.200.0030.05318.30
5.6.190.0070.08720.58
5.6.180.0000.04320.77
5.6.170.0130.05320.57
5.6.160.0100.05020.48
5.6.150.0170.07318.23
5.6.140.0070.05018.17
5.6.130.0100.03718.16
5.6.120.0000.06321.06
5.6.110.0100.07721.00
5.6.100.0070.07020.97
5.6.90.0100.04021.13
5.6.80.0100.08020.38
5.5.350.0270.06720.41
5.5.340.0070.04317.99
5.5.330.0070.08720.41
5.5.320.0600.05020.33
5.5.310.0200.03720.21
5.5.300.0000.04717.98
5.5.290.0000.05317.98
5.5.280.0130.04720.78
5.5.270.0100.03720.87
5.5.260.0170.06320.96
5.5.250.0030.08020.59
5.5.240.0230.05720.37

preferences:
52.39 ms | 401 KiB | 5 Q