3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array( array('ur_user_id'=> 1,'ur_fname'=>'PerA','ur_lname'=>'SonA'), array('ur_user_id'=> 2,'ur_fname'=>'PerB','ur_lname'=>'SonB'), array('ur_user_id'=> 3,'ur_fname'=>'PerC','ur_lname'=>'SonC'), ); $array2 = array( array('ur_user_id' => 5,'ur_code' => 'AA-BB-CC','ur_user_role' => 'testE'), array('ur_user_id' => 4,'ur_code' => 'AA-BB-CC','ur_user_role' => 'testD'), array('ur_user_id' => 6,'ur_code' => 'AA-BB-CC','ur_user_role' => 'testF'), array('ur_user_id' => 3,'ur_code' => 'AA-BB-CC','ur_user_role' => 'testC'), array('ur_user_id' => 1,'ur_code' => 'AA-BB-CC','ur_user_role' => 'testA'), array('ur_user_id' => 2,'ur_code' => 'AA-BB-CC','ur_user_role' => 'testB'), ); $ids = array(); $out = array(); foreach($array1 as $key => $value){ if(isset($array2[$key])) $out[$key][] = $array2[$key]; $out[$key][] = $value; $ids[] = $array2[$key]['ur_user_id']; } foreach($array2 as $key => $val){ if(!in_array($val['ur_user_id'], $ids)) $out[$key][] = $array2[$key]; } print_r($out);

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.130.0050.00318.89
8.4.120.0120.00720.71
8.4.110.0030.00622.70
8.4.100.0080.00617.98
8.4.90.0090.01020.41
8.4.80.0140.00520.53
8.4.70.0050.00517.96
8.4.60.0100.00918.70
8.4.50.0110.00922.23
8.4.40.0080.01119.59
8.4.30.0070.01117.60
8.4.20.0060.00317.76
8.4.10.0060.00317.82
8.3.260.0110.00916.80
8.3.250.0110.00819.13
8.3.240.0100.00616.62
8.3.230.0130.00716.63
8.3.220.0100.00819.20
8.3.210.0100.00916.62
8.3.200.0060.00516.60
8.3.190.0090.00817.28
8.3.180.0150.00416.51
8.3.170.0060.01218.92
8.3.160.0090.00020.18
8.3.150.0140.00718.55
8.3.140.0000.00816.73
8.3.130.0050.00318.46
8.3.120.0030.00618.92
8.3.110.0030.00720.94
8.3.100.0050.00324.06
8.3.90.0040.00426.77
8.3.80.0060.00318.30
8.3.70.0100.01016.61
8.3.60.0140.00716.38
8.3.50.0150.00421.96
8.3.40.0140.00618.92
8.3.30.0040.01118.51
8.3.20.0080.00021.21
8.3.10.0040.00421.82
8.3.00.0080.00019.79
8.2.290.0120.00619.20
8.2.280.0090.00818.34
8.2.270.0120.00619.24
8.2.260.0060.00318.44
8.2.250.0120.00016.81
8.2.240.0130.00618.86
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0030.00726.77
8.2.200.0030.00618.54
8.2.190.0090.00916.88
8.2.180.0150.00616.38
8.2.170.0130.00719.04
8.2.160.0100.00722.96
8.2.150.0040.00424.18
8.2.140.0140.00024.66
8.2.130.0070.00026.16
8.2.120.0040.01419.36
8.2.110.0000.00920.25
8.2.100.0090.00317.98
8.2.90.0060.00317.75
8.2.80.0030.00617.97
8.2.70.0030.00517.75
8.2.60.0030.00517.93
8.2.50.0000.00918.10
8.2.40.0040.00422.37
8.2.30.0000.00719.35
8.2.20.0070.00017.74
8.2.10.0000.00718.09
8.2.00.0040.00418.13
8.1.330.0130.00716.73
8.1.320.0110.01016.04
8.1.310.0080.00018.55
8.1.300.0070.01418.00
8.1.290.0040.00430.84
8.1.280.0100.00725.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0060.00323.96
8.1.230.0080.00417.77
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.45
8.1.160.0030.00319.02
8.1.150.0040.00418.89
8.1.140.0020.00519.50
8.1.130.0070.00017.58
8.1.120.0070.00017.52
8.1.110.0040.00417.34
8.1.100.0040.00417.47
8.1.90.0040.00417.34
8.1.80.0000.00717.51
8.1.70.0000.00717.47
8.1.60.0060.00317.48
8.1.50.0040.00417.52
8.1.40.0030.00517.52
8.1.30.0060.00317.70
8.1.20.0040.00417.57
8.1.10.0050.00317.44
8.1.00.0000.00717.46
8.0.300.0000.00718.77
8.0.290.0050.00316.63
8.0.280.0000.00718.33
8.0.270.0070.00017.17
8.0.260.0030.00317.32
8.0.250.0030.00316.86
8.0.240.0100.00016.94
8.0.230.0000.00717.02
8.0.220.0040.00416.78
8.0.210.0000.00716.89
8.0.200.0000.00616.98
8.0.190.0040.00416.93
8.0.180.0000.00816.95
8.0.170.0000.00716.74
8.0.160.0000.00716.97
8.0.150.0080.00016.82
8.0.140.0000.00716.82
8.0.130.0030.00313.29
8.0.120.0080.00016.82
8.0.110.0030.00416.89
8.0.100.0030.00516.68
8.0.90.0050.00216.79
8.0.80.0070.00716.88
8.0.70.0000.00816.84
8.0.60.0080.00016.73
8.0.50.0000.00716.95
8.0.30.0110.00817.06
8.0.20.0060.01217.40
8.0.10.0030.00617.11
8.0.00.0100.01616.58
7.4.330.0000.00515.08
7.4.320.0030.00316.55
7.4.300.0000.00616.60
7.4.290.0060.00316.51
7.4.280.0000.00816.50
7.4.270.0050.00316.51
7.4.260.0070.00016.42
7.4.250.0080.00016.49
7.4.240.0020.00516.63
7.4.230.0000.00716.69
7.4.220.0120.00616.63
7.4.210.0090.00616.59
7.4.200.0000.00716.44
7.4.160.0110.00616.41
7.4.150.0110.00717.40
7.4.140.0080.01217.86
7.4.130.0120.00416.46
7.4.120.0120.00616.43
7.4.110.0170.00016.30
7.4.100.0120.00916.37
7.4.90.0100.00716.30
7.4.80.0100.00719.39
7.4.70.0060.00916.45
7.4.60.0130.00316.46
7.4.50.0070.01116.55
7.4.40.0120.00416.36
7.4.30.0160.00016.65
7.4.00.0110.00414.86
7.3.330.0030.00313.27
7.3.320.0060.00013.13
7.3.310.0070.00016.33
7.3.300.0000.00716.35
7.3.290.0110.00416.32
7.3.280.0100.00616.34
7.3.270.0070.01017.40
7.3.260.0080.01016.39
7.3.250.0090.01116.47
7.3.240.0110.00916.42
7.3.230.0130.00716.40
7.3.210.0110.00616.43
7.3.200.0070.01116.56
7.3.190.0100.00616.50
7.3.180.0070.01116.25
7.3.170.0110.01116.33
7.3.160.0120.00616.36
7.2.330.0100.00716.72
7.2.320.0120.00616.50
7.2.310.0130.00616.64
7.2.300.0090.00916.70
7.2.290.0090.01016.64
7.2.60.0070.00716.86
7.1.200.0040.00815.77
7.1.70.0000.00717.28
7.1.60.0110.00319.47
7.1.00.0000.08022.44
7.0.200.0370.00314.78
7.0.60.0730.00020.08
7.0.50.1070.00020.28
7.0.40.0770.00020.34
7.0.30.0830.00020.35
7.0.20.0830.00020.43
7.0.10.1000.00020.34
7.0.00.0800.00020.26
5.6.280.0070.07020.77
5.6.210.0830.00020.75
5.6.200.0930.00021.06
5.6.190.0770.00021.04
5.6.180.0830.00021.13
5.6.170.0830.00021.05
5.6.160.0770.00021.21
5.6.150.0800.00021.21
5.6.140.0700.00021.05
5.6.130.0800.00021.18
5.6.120.0770.00021.05
5.6.110.0730.00021.17
5.6.100.0830.00021.06
5.6.90.0730.00021.04
5.6.80.0770.00020.41
5.6.70.0770.00020.44
5.6.60.0800.00020.58
5.6.50.0970.00020.41
5.6.40.0730.00020.39
5.6.30.0770.00020.45
5.6.20.0900.00020.41
5.6.10.0730.00020.38
5.6.00.0870.00020.40
5.5.350.0730.00020.59
5.5.340.0830.00020.87
5.5.330.0800.00020.78
5.5.320.1000.00020.75
5.5.310.0900.00020.84
5.5.300.0700.00020.80
5.5.290.0830.00020.78
5.5.280.0700.00020.88
5.5.270.0870.00020.96
5.5.260.0900.00020.99
5.5.250.0730.00020.68
5.5.240.0770.00020.34
5.5.230.0830.00020.41
5.5.220.0730.00020.10
5.5.210.0730.00020.13
5.5.200.0870.00020.23
5.5.190.0730.00020.10
5.5.180.1070.00020.23
5.5.160.0830.00020.17
5.5.150.0800.00020.07
5.5.140.0800.00020.20
5.5.130.0770.00020.19
5.5.120.0770.00020.36
5.5.110.0730.00020.31
5.5.100.0800.00020.21
5.5.90.0800.00020.20
5.5.80.0770.00020.11
5.5.70.0800.00020.05
5.5.60.0770.00020.11
5.5.50.0700.00020.10
5.5.40.0730.00019.95
5.5.30.0770.00020.27
5.5.20.0770.00020.10
5.5.10.0730.00020.16
5.5.00.0730.00020.10

preferences:
31.46 ms | 403 KiB | 5 Q