3v4l.org

run code in 300+ PHP versions simultaneously
<?php $temp = '{"1150": [1150, 10, 0], "1168": [1168, 100, 0], "1169": [1169, 100, 1], "1175": [1175, 90, 0], "1178": [1178, 200, 0]}'; $temp2 = '{"1150": [1150, 10, 0]}'; $temp = json_decode($temp, true); $temp2 = json_decode($temp2, true); $temp3 = array_merge($temp, $temp2); print_r(array_unique($temp3)); // $array = array_unique(array_merge($temp, $temp2)); // print_r($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.3.60.0160.00616.50
8.3.50.0040.01116.13
8.3.40.0040.01118.76
8.3.30.0030.01018.59
8.3.20.0040.00420.19
8.3.10.0080.00023.70
8.3.00.0080.00019.26
8.2.180.0180.00316.63
8.2.170.0140.00022.96
8.2.160.0100.00320.43
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00420.94
8.2.120.0040.00426.35
8.2.110.0100.00022.13
8.2.100.0040.01117.84
8.2.90.0040.00417.88
8.2.80.0050.00318.04
8.2.70.0040.00417.93
8.2.60.0000.00918.03
8.2.50.0040.00418.10
8.2.40.0030.00620.64
8.2.30.0030.00520.98
8.2.20.0050.00218.04
8.2.10.0050.00317.93
8.2.00.0000.00717.94
8.1.280.0090.00625.92
8.1.270.0020.00522.24
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00920.43
8.1.230.0080.00422.69
8.1.220.0040.00421.02
8.1.210.0040.00718.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0060.00318.84
8.1.160.0070.00019.02
8.1.150.0060.00320.48
8.1.140.0040.00419.52
8.1.130.0070.00018.70
8.1.120.0040.00417.33
8.1.110.0080.00017.33
8.1.100.0000.00717.29
8.1.90.0020.00517.24
8.1.80.0040.00417.41
8.1.70.0060.00317.40
8.1.60.0000.00817.57
8.1.50.0030.00517.41
8.1.40.0030.00517.47
8.1.30.0000.00717.50
8.1.20.0030.00517.63
8.1.10.0070.00017.34
8.1.00.0050.00217.38
8.0.300.0070.00022.01
8.0.290.0000.00716.63
8.0.280.0040.00418.32
8.0.270.0040.00417.19
8.0.260.0070.00016.86
8.0.250.0030.00316.95
8.0.240.0000.00816.92
8.0.230.0030.00316.86
8.0.220.0030.00316.85
8.0.210.0050.00216.85
8.0.200.0030.00316.95
8.0.190.0000.00716.95
8.0.180.0070.00016.90
8.0.170.0040.00416.92
8.0.160.0040.00416.97
8.0.150.0000.00716.79
8.0.140.0030.00316.83
8.0.130.0000.00613.33
8.0.120.0050.00316.81
8.0.110.0000.00716.89
8.0.100.0040.00416.95
8.0.90.0000.00716.92
8.0.80.0110.00516.95
8.0.70.0000.00816.85
8.0.60.0080.00016.79
8.0.50.0040.00416.78
8.0.30.0120.00817.01
8.0.20.0120.00917.40
8.0.10.0000.00816.86
8.0.00.0110.00516.66
7.4.330.0030.00315.55
7.4.320.0060.00016.49
7.4.300.0030.00316.46
7.4.290.0080.00016.38
7.4.280.0080.00016.44
7.4.270.0030.00316.51
7.4.260.0000.00716.52
7.4.250.0030.00616.40
7.4.240.0000.00816.55
7.4.230.0030.00316.33
7.4.220.0110.01616.47
7.4.210.0030.01316.48
7.4.200.0000.00716.35
7.4.160.0070.01016.47
7.4.150.0110.00717.40
7.4.140.0080.01117.86
7.4.130.0110.01116.50
7.4.120.0120.00716.48
7.4.110.0100.00716.53
7.4.100.0090.00916.42
7.4.90.0040.01716.50
7.4.80.0110.00819.39
7.4.70.0140.00316.54
7.4.60.0090.00816.60
7.4.50.0080.00316.54
7.4.40.0070.01116.54
7.4.30.0030.01316.49
7.4.00.0110.00414.87
7.3.330.0000.00713.18
7.3.320.0030.00312.91
7.3.310.0030.00316.13
7.3.300.0050.00216.03
7.3.290.0060.00916.19
7.3.280.0080.00716.21
7.3.270.0100.01617.40
7.3.260.0130.00716.18
7.3.250.0090.01016.20
7.3.240.0040.01916.38
7.3.230.0040.01416.17
7.3.210.0100.00716.41
7.3.200.0150.00616.55
7.3.190.0060.00916.35
7.3.180.0030.01616.24
7.3.170.0110.00716.21
7.3.160.0070.01016.38
7.3.10.0060.00616.22
7.3.00.0040.00816.30
7.2.330.0120.00916.70
7.2.320.0090.00916.48
7.2.310.0030.01316.58
7.2.300.0130.01016.32
7.2.290.0130.01016.58
7.2.130.0050.00516.82
7.2.120.0000.01316.85
7.2.110.0060.00916.58
7.2.100.0030.01016.48
7.2.90.0070.01016.91
7.2.80.0100.00316.59
7.2.70.0060.00316.59
7.2.60.0050.00916.73
7.2.50.0060.00616.80
7.2.40.0070.00316.55
7.2.30.0040.00416.96
7.2.20.0060.00616.62
7.2.10.0060.00316.57
7.2.00.0030.01118.04
7.1.250.0030.01115.48
7.1.200.0000.01615.59
7.1.100.0030.00617.91
7.1.70.0040.01217.07
7.1.60.0260.00634.82
7.1.50.0190.01534.63
7.1.40.0270.01234.38
7.1.30.0170.01734.54
7.1.20.0260.01734.26
7.1.10.0030.01316.67
7.1.00.0070.01316.54
7.0.200.0120.00616.76
7.0.190.0100.00516.62
7.0.180.0080.01116.39
7.0.170.0130.01416.30
7.0.160.0030.01716.11
7.0.150.0060.00916.34
7.0.140.0060.01016.30
7.0.130.0030.01616.47
7.0.120.0060.01116.35
7.0.110.0120.00616.11
7.0.100.0030.01416.22
7.0.90.0040.01416.24
7.0.80.0040.01516.17
7.0.70.0090.00916.10
7.0.60.0130.00915.93
7.0.50.0120.00416.26
7.0.40.0130.00316.41
7.0.30.0100.00716.44
7.0.20.0030.01716.11
7.0.10.0080.00816.52
7.0.00.0060.01016.28

preferences:
70.84 ms | 400 KiB | 5 Q