3v4l.org

run code in 300+ PHP versions simultaneously
<?php function oldWay(string ...$packages): array { $existingPackages = ['a', 'b']; return $existingPackages += $packages; } function newWay(string ...$packages): array { $existingPackages = ['a', 'b']; return [...$existingPackages, ...$packages]; } var_dump(oldway('c', 'd'), newWay('c', 'd'));

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.0050.00516.67
8.5.00.0140.00720.13
8.4.160.0140.00923.96
8.4.150.0010.00114.05
8.4.140.0120.00817.42
8.4.130.0100.01018.63
8.4.120.0090.01124.04
8.4.110.0110.00918.84
8.4.100.0120.00918.91
8.4.90.0140.00720.34
8.4.80.0120.00818.77
8.4.70.0110.00819.05
8.4.60.0140.00618.92
8.4.50.0090.01118.72
8.4.40.0050.00317.70
8.4.30.0160.00318.81
8.4.20.0130.01017.91
8.4.10.0030.00619.49
8.3.280.0130.00718.27
8.3.270.0140.00616.52
8.3.260.0050.00516.82
8.3.250.0090.00918.73
8.3.240.0100.00917.18
8.3.230.0090.00716.60
8.3.220.0050.00318.81
8.3.210.0100.00516.56
8.3.200.0050.00416.75
8.3.190.0090.00817.09
8.3.180.0070.00318.86
8.3.170.0000.00716.71
8.3.160.0000.01519.12
8.3.150.0130.00717.24
8.3.140.0150.00416.41
8.3.130.0100.00018.57
8.3.120.0100.01018.92
8.3.110.0000.00920.94
8.3.100.0040.00424.06
8.3.90.0150.00026.77
8.3.80.0100.00018.43
8.3.70.0040.01116.75
8.3.60.0140.00716.49
8.3.50.0040.01116.79
8.3.40.0100.01021.58
8.3.30.0100.01018.93
8.3.20.0100.00721.91
8.3.10.0060.00921.90
8.3.00.0060.01019.00
8.2.290.0110.00820.46
8.2.280.0120.00818.34
8.2.270.0030.00617.25
8.2.260.0070.00718.25
8.2.250.0000.00816.49
8.2.240.0070.00717.16
8.2.230.0060.00322.58
8.2.220.0060.00937.54
8.2.210.0040.00426.77
8.2.200.0060.00316.63
8.2.190.0160.00018.27
8.2.180.0180.00418.16
8.2.170.0120.00318.95
8.2.160.0130.00318.82
8.2.150.0120.00319.01
8.2.140.0090.00620.45
8.2.130.0060.00920.17
8.2.120.0090.00619.27
8.2.110.0090.00619.41
8.2.100.0030.01218.82
8.2.90.0120.00318.74
8.2.80.0040.01119.07
8.2.70.0100.00718.63
8.2.60.0100.00718.77
8.2.50.0090.00619.22
8.2.40.0120.00318.91
8.2.30.0040.01218.79
8.2.20.0100.00618.68
8.2.10.0110.00718.55
8.2.00.0100.01018.51
8.1.330.0130.00621.98
8.1.320.0130.00716.01
8.1.310.0120.00318.01
8.1.300.0080.00620.32
8.1.290.0090.00030.84
8.1.280.0190.00325.92
8.1.270.0120.00622.14
8.1.260.0140.00321.87
8.1.250.0100.00721.91
8.1.240.0100.00718.50
8.1.230.0130.00318.61
8.1.220.0100.00618.64
8.1.210.0150.00018.35
8.1.200.0000.01618.67
8.1.190.0060.00918.57
8.1.180.0100.00718.30
8.1.170.0060.01318.80
8.1.160.0070.01018.49
8.1.150.0130.00718.52
8.1.140.0150.00618.45
8.1.130.0150.00418.69
8.1.120.0060.01218.62
8.1.110.0060.01218.45
8.1.100.0060.00919.71
8.1.90.0080.00818.41
8.1.80.0120.00619.39
8.1.70.0070.01018.59
8.1.60.0060.01018.64
8.1.50.0090.00918.67
8.1.40.0090.00918.61
8.1.30.0100.00718.69
8.1.20.0120.00319.97
8.1.10.0090.00618.77
8.1.00.0060.00918.44

preferences:
88.06 ms | 403 KiB | 5 Q