3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = function () { return [['a'], ['b'], ['c']]; }; $bar = function () { return [['a'], ['b'], ['c']]; }; var_dump(array_merge( ...$foo(), ...$bar() ));

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.20.0080.01219.36
8.4.10.0060.00319.30
8.3.150.0090.00918.66
8.3.140.0080.00017.17
8.3.130.0000.00818.26
8.3.120.0040.00419.05
8.3.110.0000.00920.94
8.3.100.0050.00518.41
8.3.90.0000.00826.77
8.3.80.0070.00318.18
8.3.70.0110.00416.63
8.3.60.0150.00016.37
8.3.50.0200.00921.16
8.3.40.0060.00918.57
8.3.30.0070.00718.33
8.3.20.0030.00518.69
8.3.10.0000.00821.73
8.3.00.0040.00421.84
8.2.260.0060.00316.60
8.2.250.0040.00418.31
8.2.240.0040.01416.94
8.2.230.0000.00922.58
8.2.220.0000.00924.06
8.2.210.0030.00626.77
8.2.200.0060.00318.16
8.2.190.0060.00916.58
8.2.180.0160.00618.38
8.2.170.0030.01022.96
8.2.160.0030.01022.16
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00019.82
8.2.120.0040.00426.35
8.2.110.0060.00322.20
8.2.100.0080.00417.78
8.2.90.0040.00417.84
8.2.80.0000.00818.84
8.2.70.0030.00617.63
8.2.60.0000.00817.50
8.2.50.0080.00018.10
8.2.40.0050.00320.42
8.2.30.0000.00719.34
8.2.20.0000.00818.11
8.2.10.0040.00418.07
8.2.00.0050.00317.59
8.1.310.0070.01118.51
8.1.300.0060.00317.82
8.1.290.0030.00618.88
8.1.280.0070.00725.92
8.1.270.0070.00023.88
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00922.54
8.1.230.0080.00322.63
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0060.00317.52
8.1.180.0000.00818.10
8.1.170.0070.00418.66
8.1.160.0000.00822.14
8.1.150.0050.00218.79
8.1.140.0060.00319.62
8.1.130.0030.00317.71
8.1.120.0030.00617.40
8.1.110.0040.00417.36
8.1.100.0040.00417.44
8.1.90.0040.00417.48
8.1.80.0040.00417.43
8.1.70.0100.00017.30
8.1.60.0080.00017.58
8.1.50.0000.00817.54
8.1.40.0040.00417.42
8.1.30.0050.00317.54
8.1.20.0000.00817.61
8.1.10.0040.00417.52
8.1.00.0000.00717.33
8.0.300.0040.00420.06
8.0.290.0050.00316.63
8.0.280.0040.00418.41
8.0.270.0040.00417.18
8.0.260.0030.00317.19
8.0.250.0000.00716.75
8.0.240.0030.00316.80
8.0.230.0040.00416.87
8.0.220.0000.00816.69
8.0.210.0030.00316.70
8.0.200.0000.00716.98
8.0.190.0030.00516.97
8.0.180.0000.00816.90
8.0.170.0000.00816.91
8.0.160.0030.00516.95
8.0.150.0070.00416.84
8.0.140.0040.00316.81
8.0.130.0000.00613.34
8.0.120.0000.00816.82
8.0.110.0070.00016.77
8.0.100.0000.00716.93
8.0.90.0070.00016.76
8.0.80.0090.00916.87
8.0.70.0000.00716.70
8.0.60.0040.00416.87
8.0.50.0040.00416.76
8.0.30.0100.01017.06
8.0.20.0090.01017.40
8.0.10.0000.00716.86
8.0.00.0070.01016.85
7.4.330.0030.00315.55
7.4.320.0000.00616.60
7.4.300.0070.00016.55
7.4.290.0070.00016.53
7.4.280.0040.00416.38
7.4.270.0000.00716.54
7.4.260.0000.00716.58
7.4.250.0030.00316.55
7.4.240.0030.00516.51
7.4.230.0050.00216.39
7.4.220.0160.00316.52
7.4.210.0030.01616.45
7.4.200.0030.00316.57
7.4.150.0060.01217.40
7.4.140.0130.00617.86
7.4.130.0120.00816.47
7.4.120.0130.00616.38
7.4.110.0130.00316.38
7.4.100.0080.00816.36
7.4.90.0040.01216.48
7.4.80.0120.00619.39
7.4.70.0080.00816.36
7.4.60.0100.00616.46
7.4.50.0060.00916.34
7.4.40.0130.01016.49
7.4.30.0110.00616.39
7.4.10.0090.00914.71
7.4.00.0060.01114.71
7.3.330.0040.00413.09
7.3.320.0050.00013.05
7.3.310.0000.00716.23
7.3.300.0040.00416.27
7.3.290.0080.00616.23
7.3.280.0090.00916.25
7.3.270.0100.01017.40
7.3.260.0120.00816.60
7.3.250.0110.00716.45
7.3.240.0060.01316.41
7.3.230.0100.00716.39
7.3.210.0060.01116.15
7.3.200.0040.01516.39
7.3.190.0180.00316.41
7.3.180.0090.00816.27
7.3.170.0070.01116.42
7.3.160.0070.01016.55
7.3.130.0060.01014.85
7.3.120.0070.01014.88
7.3.110.0040.01514.89
7.3.100.0090.00614.66
7.3.90.0000.00914.40
7.3.80.0060.00614.93
7.3.70.0000.01214.68
7.3.60.0040.01114.82
7.3.50.0040.00414.74
7.3.40.0130.00314.59
7.3.30.0090.00314.69
7.3.20.0120.00316.73
7.3.10.0030.00616.60
7.3.00.0100.00716.61
7.2.330.0120.00616.46
7.2.320.0080.00816.66
7.2.310.0110.00516.54
7.2.300.0100.01116.63
7.2.290.0030.01416.38
7.2.260.0000.01814.86
7.2.250.0070.00715.09
7.2.240.0060.01014.72
7.2.230.0030.01314.74
7.2.220.0000.01614.80
7.2.210.0070.00715.07
7.2.200.0100.00314.61
7.2.190.0050.00514.97
7.2.180.0070.00714.75
7.2.170.0000.01114.83
7.2.160.0060.00914.82
7.2.150.0060.00616.71
7.2.140.0050.00416.84
7.2.130.0090.00916.56
7.2.120.0110.00416.67
7.2.110.0080.00817.00
7.2.100.0030.01416.85
7.2.90.0100.00616.73
7.2.80.0070.01016.57
7.2.70.0060.00616.57
7.2.60.0020.01016.43
7.2.50.0000.01616.77
7.2.40.0090.00616.66
7.2.30.0000.01016.73
7.2.20.0060.00916.30
7.2.10.0070.01016.61
7.2.00.0040.00917.95
7.1.330.0110.00715.78
7.1.320.0070.00715.53
7.1.310.0070.01015.66
7.1.300.0030.00715.66
7.1.290.0070.00415.80
7.1.280.0030.01015.56
7.1.270.0030.00915.63
7.1.260.0070.01015.64
7.1.250.0060.00915.68
7.1.240.0030.00815.79
7.1.230.0060.00915.57
7.1.220.0030.01015.35
7.1.210.0060.00615.65
7.1.200.0060.00715.78
7.1.190.0040.00715.68
7.1.180.0030.01015.56
7.1.170.0030.00715.86
7.1.160.0050.01015.57
7.1.150.0060.00615.45
7.1.140.0040.01115.67
7.1.130.0070.00415.64
7.1.120.0060.01215.83
7.1.110.0060.00815.59
7.1.100.0000.01115.77
7.1.90.0090.00315.55
7.1.80.0060.00615.59
7.1.70.0030.00916.35
7.1.60.0090.00316.34
7.1.50.0070.00715.61
7.1.40.0030.00615.64
7.1.30.0030.01215.39
7.1.20.0070.00715.76
7.1.10.0060.00815.63
7.1.00.0110.03518.97
7.0.330.0060.01014.96
7.0.320.0070.00415.34
7.0.310.0090.00015.02
7.0.300.0000.00915.25
7.0.290.0030.00615.31
7.0.280.0000.00715.31
7.0.270.0070.00715.01
7.0.260.0130.00315.10
7.0.250.0060.00615.22
7.0.240.0080.00415.18
7.0.230.0090.00315.23
7.0.220.0000.00815.30
7.0.210.0030.00515.24
7.0.200.0080.00314.88
7.0.190.0030.00615.02
7.0.180.0030.01315.33
7.0.170.0030.00715.38
7.0.160.0050.00515.43
7.0.150.0080.00815.16
7.0.140.0070.00415.02
7.0.130.0040.01115.38
7.0.120.0130.03817.67
7.0.110.0140.03218.63
7.0.100.0050.04018.69
7.0.90.0140.02718.70
7.0.80.0130.03018.85
7.0.70.0140.03218.69
7.0.60.0050.03718.64
7.0.50.0050.04218.59
7.0.40.0150.03017.68
7.0.30.0070.04617.73
7.0.20.0120.04317.60
7.0.10.0120.02717.60
7.0.00.0080.03117.78
5.6.400.0070.01014.45
5.6.390.0040.00814.29
5.6.380.0030.01014.43
5.6.370.0100.00714.30
5.6.360.0030.01314.04
5.6.350.0070.00614.43
5.6.340.0070.00714.53
5.6.330.0040.00714.39
5.6.320.0000.01814.31
5.6.310.0130.00314.18
5.6.300.0040.00414.55
5.6.290.0040.00714.19
5.6.280.0030.00914.55
5.6.270.0100.03317.47
5.6.260.0050.03617.70
5.6.250.0140.02817.73
5.6.240.0100.03217.55
5.6.230.0090.03017.74
5.6.220.0140.04217.51
5.6.210.0080.03717.64
5.6.200.0150.04017.51
5.6.190.0100.03517.51
5.6.180.0120.03917.73
5.6.170.0150.02717.75
5.6.160.0090.03417.48
5.6.150.0080.03517.54
5.6.140.0060.04917.51
5.6.130.0120.03417.47
5.6.120.0100.03317.48
5.6.110.0170.04017.48
5.6.100.0130.03017.64
5.6.90.0080.04817.54
5.6.80.0190.03417.31
5.6.70.0070.03317.21
5.6.60.0140.04117.22
5.6.50.0110.04017.25
5.6.40.0050.04717.29
5.6.30.0120.03817.19
5.6.20.0100.03217.17
5.6.10.0170.02517.27
5.6.00.0110.03417.18

preferences:
73.07 ms | 403 KiB | 5 Q