3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [['user1' => 20], ['user2' => 30], 3 => ['user3' => 10]]; echo array_sum(array_merge(...$array));

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.120.0090.01123.93
8.4.110.0090.01018.49
8.4.100.0110.01117.49
8.4.90.0080.00517.56
8.4.80.0050.00417.75
8.4.70.0110.00419.61
8.4.60.0110.00817.58
8.4.50.0140.00719.54
8.4.40.0120.00617.40
8.4.30.0170.00317.54
8.4.20.0100.01320.51
8.4.10.0030.00619.40
8.3.250.0130.00518.57
8.3.240.0050.00416.91
8.3.230.0050.00516.77
8.3.220.0100.00817.04
8.3.210.0110.00816.59
8.3.200.0100.01016.44
8.3.190.0130.00616.66
8.3.180.0090.01018.75
8.3.170.0120.00617.22
8.3.160.0110.00719.85
8.3.150.0150.00316.31
8.3.140.0070.01117.09
8.3.130.0060.00318.55
8.3.120.0090.00018.63
8.3.110.0140.00320.94
8.3.100.0080.00024.06
8.3.90.0030.00526.77
8.3.80.0040.00717.97
8.3.70.0080.00616.25
8.3.60.0150.00318.18
8.3.50.0060.00817.30
8.3.40.0000.01618.54
8.3.30.0150.00618.42
8.3.20.0040.00418.63
8.3.10.0000.00723.53
8.3.00.0000.00921.63
8.2.290.0040.00520.24
8.2.280.0140.00418.46
8.2.270.0100.01017.12
8.2.260.0080.01118.11
8.2.250.0080.00016.71
8.2.240.0060.00319.02
8.2.230.0040.00422.58
8.2.220.0000.00937.54
8.2.210.0040.00426.77
8.2.200.0030.00618.29
8.2.190.0040.01216.62
8.2.180.0140.00716.38
8.2.170.0040.01122.96
8.2.160.0070.00719.51
8.2.150.0000.00724.18
8.2.140.0020.00524.66
8.2.130.0070.00020.91
8.2.120.0060.00326.35
8.2.110.0100.00021.00
8.2.100.0040.00717.91
8.2.90.0000.00919.23
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0050.00317.63
8.2.40.0070.00019.30
8.2.30.0000.00720.66
8.2.20.0000.00718.05
8.2.10.0040.00418.13
8.2.00.0000.00819.30
8.1.330.0120.00721.90
8.1.320.0120.00716.13
8.1.310.0150.00318.50
8.1.300.0030.00518.25
8.1.290.0030.00630.84
8.1.280.0040.01125.92
8.1.270.0040.00420.73
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00019.34
8.1.230.0000.01217.45
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.12
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0080.00318.50
8.1.160.0050.00318.78
8.1.150.0040.00418.74
8.1.140.0040.00420.65
8.1.130.0030.00320.32
8.1.120.0000.00717.33
8.1.110.0000.00717.39
8.1.100.0060.00317.28
8.1.90.0040.00417.33
8.1.80.0000.00917.33
8.1.70.0030.00517.37
8.1.60.0040.00417.51
8.1.50.0040.00417.50
8.1.40.0070.00017.46
8.1.30.0040.00417.58
8.1.20.0000.00717.64
8.1.10.0020.00517.49
8.1.00.0050.00217.30
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.36
8.0.270.0000.00717.32
8.0.260.0000.00820.20
8.0.250.0070.00016.87
8.0.240.0050.00216.95
8.0.230.0000.00716.89
8.0.220.0070.00016.84
8.0.210.0080.00016.79
8.0.200.0080.00016.78
8.0.190.0000.00716.88
8.0.180.0000.00816.76
8.0.170.0030.00516.74
8.0.160.0040.00416.80
8.0.150.0040.00416.74
8.0.140.0080.00016.77
8.0.130.0090.00013.16
8.0.120.0000.00716.69
8.0.110.0040.00416.68
8.0.100.0080.00016.64
8.0.90.0050.00216.87
8.0.80.0130.00716.81
8.0.70.0040.00416.89
8.0.60.0030.00616.83
8.0.50.0040.00416.73
8.0.30.0150.00517.15
8.0.20.0080.01117.40
8.0.10.0000.00717.07
8.0.00.0050.01316.75
7.4.330.0050.00015.55
7.4.320.0030.00316.54
7.4.300.0030.00316.58
7.4.290.0040.00416.45
7.4.280.0030.00516.35
7.4.270.0040.00416.50
7.4.260.0000.00816.40
7.4.250.0020.00516.51
7.4.240.0040.00416.43
7.4.230.0030.00316.64
7.4.220.0080.00016.63
7.4.210.0120.00416.47
7.4.200.0000.00716.63
7.4.160.0110.00716.50
7.4.140.0130.00817.86
7.4.130.0120.01216.48
7.4.120.0100.01016.48
7.4.110.0040.01216.50
7.4.100.0050.01416.63
7.4.90.0170.00316.52
7.4.80.0080.00819.39
7.4.70.0030.01316.32
7.4.60.0130.00716.46
7.4.50.0030.01316.16
7.4.40.0040.01916.43
7.4.00.0070.01014.89
7.3.330.0000.00513.01
7.3.320.0000.00512.87
7.3.310.0000.00716.20
7.3.300.0060.00016.14
7.3.290.0070.00016.14
7.3.280.0090.00916.13
7.3.260.0090.01016.36
7.3.240.0090.01116.23
7.3.230.0100.01016.42
7.3.210.0120.00316.31
7.3.200.0090.01216.28
7.3.190.0140.00316.17
7.3.180.0040.01216.44
7.3.170.0140.00316.11
7.3.160.0120.00316.30
7.2.330.0160.01016.59
7.2.320.0110.00816.46
7.2.310.0170.00016.58
7.2.300.0080.00816.63
7.2.290.0040.01216.60
7.2.90.3240.00714.13
7.2.80.4070.01314.68
7.2.70.3330.01314.32
7.2.60.4800.00614.82
7.2.50.2860.01014.86
7.2.40.3670.00614.59
7.2.30.4300.00714.86
7.2.20.4290.00914.93
7.2.10.3880.01014.77
7.2.00.3840.01014.44
7.1.210.2910.00313.40
7.1.200.2970.01013.43
7.1.190.2910.00713.62
7.1.180.3090.01013.79
7.1.170.3780.00713.81
7.1.160.4130.00513.57
7.1.150.4850.00913.39
7.1.140.2530.00313.43
7.1.130.3770.01013.88
7.1.120.3810.00713.67
7.1.110.3190.01613.66
7.1.100.3500.00013.65
7.1.90.4880.01013.26
7.1.80.5120.00713.53
7.1.70.4060.00313.56
7.1.60.3640.01031.93
7.1.50.6430.01631.55
7.1.40.6310.01031.66
7.1.30.5930.01031.62
7.1.20.5930.00731.65
7.1.10.6490.00313.25
7.1.00.3360.00713.68

preferences:
125.2 ms | 403 KiB | 5 Q