3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1, 3, 5]; $b = [2, 4, 6]; $ab = array_merge($a, $b); print_r($ab);

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.1.90.0050.00317.28
8.1.80.0030.00517.36
8.1.70.0000.00817.38
8.1.60.0040.00417.46
8.1.50.0080.00017.48
8.1.40.0070.00017.30
8.1.30.0030.00717.42
8.1.20.0060.00317.65
8.1.10.0000.00717.32
8.1.00.0040.00417.42
8.0.220.0030.00316.79
8.0.210.0030.00316.83
8.0.200.0000.00616.84
8.0.190.0060.00316.77
8.0.180.0030.00516.78
8.0.170.0030.00616.82
8.0.160.0040.00416.75
8.0.150.0030.00516.80
8.0.140.0020.00516.81
8.0.130.0050.00013.30
8.0.120.0000.00816.79
8.0.110.0000.00916.89
8.0.100.0040.00316.69
8.0.90.0040.00416.84
8.0.80.0050.01316.80
8.0.70.0040.00416.83
8.0.60.0040.00416.81
8.0.50.0040.00416.66
8.0.30.0090.00916.81
8.0.20.0000.01917.40
8.0.10.0050.00216.84
8.0.00.0090.00916.74
7.4.300.0000.00816.57
7.4.290.0000.00816.43
7.4.280.0000.00716.53
7.4.270.0030.00316.45
7.4.260.0000.00716.50
7.4.250.0030.00316.53
7.4.240.0070.00016.40
7.4.230.0050.00216.55
7.4.220.0060.00316.51
7.4.210.0050.01216.38
7.4.200.0050.00216.31
7.4.160.0110.00616.41
7.4.140.0100.00817.86
7.4.130.0170.00316.44
7.4.120.0100.00916.43
7.4.110.0090.00816.45
7.4.100.0100.01016.41
7.4.90.0040.01716.42
7.4.80.0080.00819.39
7.4.70.0060.01216.41
7.4.60.0040.01216.41
7.4.50.0070.01116.54
7.4.40.0060.01116.38
7.4.00.0080.00814.84
7.3.330.0020.00212.89
7.3.320.0000.00613.01
7.3.310.0000.00716.16
7.3.300.0000.00716.02
7.3.290.0070.00016.15
7.3.280.0100.00616.08
7.3.260.0130.00916.24
7.3.240.0120.00516.14
7.3.230.0100.00616.02
7.3.210.0140.00316.34
7.3.200.0090.01316.45
7.3.190.0050.01616.19
7.3.180.0110.00616.16
7.3.170.0070.00716.08
7.3.160.0060.00916.34
7.3.120.0040.01514.59
7.3.110.0100.00714.64
7.3.100.0070.00714.59
7.3.90.0060.00314.56
7.3.80.0060.00914.55
7.3.70.0040.00414.75
7.3.60.0070.00314.49
7.3.50.0060.00314.47
7.3.40.0120.00314.65
7.3.30.0060.00614.45
7.3.20.0000.01216.43
7.3.10.0030.01016.42
7.3.00.0120.00316.55
7.2.330.0040.01816.23
7.2.320.0210.00016.46
7.2.310.0100.00716.57
7.2.300.0060.01016.46
7.2.290.0030.01316.66
7.2.250.0130.00614.92
7.2.240.0140.00214.92
7.2.230.0060.00314.58
7.2.220.0070.00314.79
7.2.210.0110.00414.80
7.2.200.0060.00614.82
7.2.190.0000.00914.61
7.2.180.0020.01214.64
7.2.170.0040.01114.94
7.2.90.3970.00714.27
7.2.80.3760.00714.65
7.2.70.4330.02314.75
7.2.60.4060.00314.73
7.2.50.4070.00714.84
7.2.40.3530.00714.85
7.2.30.3590.00714.81
7.2.20.4320.00914.73
7.2.10.3250.00714.80
7.2.00.4630.00714.73
7.1.330.0040.01415.33
7.1.320.0060.00915.74
7.1.310.0070.01015.66
7.1.300.0070.00715.59
7.1.290.0060.01215.66
7.1.280.0100.00315.73
7.1.270.0030.00915.82
7.1.260.0060.00615.65
7.1.210.5080.01013.80
7.1.200.3990.01013.71
7.1.190.4110.00313.79
7.1.180.4060.00313.95
7.1.170.3580.00713.66
7.1.160.3680.00713.81
7.1.150.3490.01013.90
7.1.140.3790.00713.70
7.1.130.3330.00313.93
7.1.120.3260.00613.51
7.1.110.2960.01013.97
7.1.100.2920.00013.93
7.1.90.3590.01013.59
7.1.80.4110.00313.59
7.1.70.3400.00613.45
7.1.60.3860.01031.45
7.1.50.5810.00631.95
7.1.40.5390.00731.66
7.1.30.5530.01031.69
7.1.20.4130.00331.28
7.1.10.4380.00313.88
7.1.00.2360.00613.83

preferences:
11.23 ms | 406 KiB | 5 Q