3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 'shit' => 1 ]; $b = [ 'shit' => 2 ]; $c = array_merge($a,$b); print_r($c);

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.60.0070.01016.38
8.3.50.0160.00616.40
8.3.40.0040.01118.43
8.3.30.0110.00318.29
8.3.20.0070.00020.24
8.3.10.0040.00421.58
8.3.00.0000.00720.22
8.2.180.0140.00018.12
8.2.170.0090.00622.96
8.2.160.0030.01420.53
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00321.00
8.2.120.0040.00426.35
8.2.110.0060.00322.18
8.2.100.0110.00018.03
8.2.90.0000.00919.27
8.2.80.0000.00717.97
8.2.70.0070.00317.38
8.2.60.0060.00317.80
8.2.50.0000.00818.10
8.2.40.0050.00220.59
8.2.30.0000.00820.89
8.2.20.0040.00418.05
8.2.10.0070.00018.12
8.2.00.0070.00018.17
8.1.280.0040.01125.92
8.1.270.0040.00422.08
8.1.260.0050.00226.35
8.1.250.0000.00828.09
8.1.240.0000.00918.30
8.1.230.0040.00819.02
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0100.00017.23
8.1.190.0060.00317.23
8.1.180.0070.00018.10
8.1.170.0080.00018.42
8.1.160.0030.00518.88
8.1.150.0020.00520.61
8.1.140.0050.00519.45
8.1.130.0000.00718.68
8.1.120.0030.00517.39
8.1.110.0030.00517.22
8.1.100.0070.00017.42
8.1.90.0000.00717.45
8.1.80.0000.00717.27
8.1.70.0060.00317.41
8.1.60.0000.00817.40
8.1.50.0080.00317.44
8.1.40.0000.00817.44
8.1.30.0040.00417.67
8.1.20.0040.00417.44
8.1.10.0080.00017.42
8.1.00.0000.00817.40
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0030.00317.18
8.0.260.0000.00616.65
8.0.250.0060.00016.95
8.0.240.0000.00716.82
8.0.230.0000.00716.85
8.0.220.0030.00316.88
8.0.210.0020.00516.77
8.0.200.0040.00416.90
8.0.190.0060.00316.87
8.0.180.0040.00416.76
8.0.170.0050.00216.82
8.0.160.0040.00416.84
8.0.150.0070.00016.89
8.0.140.0070.00016.82
8.0.130.0000.00513.26
8.0.120.0040.00416.79
8.0.110.0050.00216.88
8.0.100.0080.00016.80
8.0.90.0040.00416.75
8.0.80.0140.00316.75
8.0.70.0070.00016.65
8.0.60.0000.00816.88
8.0.50.0000.00716.82
8.0.30.0080.00816.87
8.0.20.0080.01317.40
8.0.10.0000.00716.81
8.0.00.0080.00916.63
7.4.330.0060.00015.55
7.4.320.0030.00316.57
7.4.300.0030.00316.44
7.4.290.0070.00016.53
7.4.280.0040.00416.42
7.4.270.0030.00316.54
7.4.260.0070.00016.27
7.4.250.0040.00416.50
7.4.240.0070.00016.41
7.4.230.0000.00916.55
7.4.220.0030.01416.48
7.4.210.0110.00616.47
7.4.200.0000.00716.27
7.4.160.0120.00316.40
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0110.01116.60
7.4.120.0100.01116.44
7.3.330.0030.00312.97
7.3.320.0000.00513.01
7.3.310.0030.00316.00
7.3.300.0030.00316.17
7.3.290.0030.00316.12
7.3.280.0080.00816.12
7.3.270.0130.00417.40
7.3.260.0110.00916.16
7.3.250.0090.01016.26
7.3.240.0100.00816.27
7.0.180.0110.00316.09

preferences:
51.41 ms | 401 KiB | 5 Q