3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 2 => array ( 'name' => 'sitebackup_2019_07_21_10_02_67.zip', 'id' => '/restore_point_backups/sitebackup_2019_07_21_10_02_67.zip', 'created' => 1563787267, ), 1 => array ( 'name' => 'sitebackup_2019_07_21_10_00_38.zip', 'id' => '/restore_point_backups/sitebackup_2019_07_21_10_00_38.zip', 'created' => 1563787197, ), 0 => array ( 'name' => 'sitebackup_2019_07_19_09_48_16.zip', 'id' => '/restore_point_backups/sitebackup_2019_07_19_09_48_16.zip', 'created' => 1563787125, ), ); $array_2 = array ( 0 => array ( 'id' => 'C:\\xampp\\htdocs\\restore_point_backups_fagardesignscom\\files', 'name' => 'sitebackup_2019_07_21_10_02_67.zip', 'created' => 1563519157, ), 1 => array ( 'id' => 'C:\\xampp\\htdocs\\restore_point_backups_fagardesignscom\\files', 'name' => 'sitebackup_2019_07_19_09_48_16.zip', 'created' => 1563522496, ), 2 => array ( 'id' => 'C:\\xampp\\htdocs\\restore_point_backups_fagardesignscom\\files', 'name' => 'sitebackup_2019_07_21_10_00_38.zip', 'created' => 1563696044, ), 3 => array ( 'id' => 'C:\\xampp\\htdocs\\restore_point_backups_fagardesignscom\\files', 'name' => 'sitebackup_2019_07_19_08_52_37.zip', 'created' => 1563696184, ), 4 => array ( 'id' => 'C:\\xampp\\htdocs\\restore_point_backups_fagardesignscom\\files', 'name' => 'sitebackup_2019_07_21_10_12_29.zip', 'created' => 1563696754, ), 5 => array ( 'id' => 'C:\\xampp\\htdocs\\restore_point_backups_fagardesignscom\\files', 'name' => 'sitebackup_2019_Jul_21_10_17_58.zip', 'created' => 1563697083, ), ); //Get the column value from array 2 ny name $array2_col = array_column($array_2, 'name'); foreach($array as $key=>$value){ //if array1 name value exist in array 2 get that key and delete from array 2 using unset. $index = array_search($value['name'], $array2_col); if($index !== false ){ unset($array_2[$index]); } } echo "<pre>"; print_r(array_values($array_2));

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.140.0160.00517.62
8.4.130.0120.00818.56
8.4.120.0050.00517.55
8.4.110.0140.00625.74
8.4.100.0110.00918.84
8.4.90.0060.00520.39
8.4.80.0140.00518.98
8.4.70.0110.00818.76
8.4.60.0100.00918.78
8.4.50.0140.00918.63
8.4.40.0160.00319.62
8.4.30.0100.01020.44
8.4.20.0120.00420.90
8.4.10.0080.01217.66
8.3.270.0070.00316.76
8.3.260.0100.00716.42
8.3.250.0040.00416.71
8.3.240.0090.01116.65
8.3.230.0110.01016.64
8.3.220.0030.00419.03
8.3.210.0090.01116.70
8.3.200.0080.00216.54
8.3.190.0130.00418.98
8.3.180.0070.00918.98
8.3.170.0070.01116.66
8.3.160.0000.01717.24
8.3.150.0150.00017.12
8.3.140.0150.00419.05
8.3.130.0140.00718.47
8.3.120.0090.00620.39
8.3.110.0140.00420.94
8.3.100.0030.00618.59
8.3.90.0030.00518.55
8.3.80.0070.00318.31
8.3.70.0100.01217.28
8.3.60.0130.00918.12
8.3.50.0310.00420.52
8.3.40.0140.00518.30
8.3.30.0180.00218.33
8.3.20.0080.00919.85
8.3.10.0160.00219.07
8.3.00.0110.00520.05
8.2.290.0070.01116.81
8.2.280.0060.00518.13
8.2.270.0100.01017.27
8.2.260.0080.00016.68
8.2.250.0110.00418.27
8.2.240.0050.00517.09
8.2.230.0090.00022.58
8.2.220.0060.00324.06
8.2.210.0050.00326.77
8.2.200.0040.00418.54
8.2.190.0160.00517.19
8.2.180.0210.00217.22
8.2.170.0140.00620.39
8.2.160.0120.00618.57
8.2.150.0110.00621.00
8.2.140.0110.00621.24
8.2.130.0130.00421.98
8.2.120.0120.00519.40
8.2.110.0140.00518.48
8.2.100.0170.00417.86
8.2.90.0130.00719.22
8.2.80.0100.00617.89
8.2.70.0130.00217.86
8.2.60.0100.00817.98
8.2.50.0120.00417.95
8.2.40.0100.00718.55
8.2.30.0100.00518.59
8.2.20.0130.00317.99
8.2.10.0100.00518.52
8.2.00.0110.00518.60
8.1.330.0100.00916.07
8.1.320.0140.00517.91
8.1.310.0080.00816.25
8.1.300.0080.00020.07
8.1.290.0030.00618.88
8.1.280.0140.00921.87
8.1.270.0130.00620.91
8.1.260.0150.00322.08
8.1.250.0140.00122.95
8.1.240.0140.00320.81
8.1.230.0140.00319.42
8.1.220.0100.00617.85
8.1.210.0080.00618.38
8.1.200.0110.00517.58
8.1.190.0060.00817.52
8.1.180.0130.00317.95
8.1.170.0140.00318.14
8.1.160.0120.00218.36
8.1.150.0120.00218.31
8.1.140.0070.00719.37
8.1.130.0110.00418.92
8.1.120.0090.00617.58
8.1.110.0060.00917.61
8.1.100.0110.00417.65
8.1.90.0110.00417.62
8.1.80.0150.00017.64
8.1.70.0090.00617.57
8.1.60.0110.00717.72
8.1.50.0140.00117.67
8.1.40.0110.00417.69
8.1.30.0100.00517.70
8.1.20.0120.00517.70
8.1.10.0130.00617.68
8.1.00.0120.00517.65
8.0.300.0110.00518.78
8.0.290.0120.00517.28
8.0.280.0150.00018.12
8.0.270.0100.00617.31
8.0.260.0150.00118.97
8.0.250.0100.00517.37
8.0.240.0120.00217.41
8.0.230.0100.00317.39
8.0.220.0080.00617.36
8.0.210.0090.00517.32
8.0.200.0130.00217.37
8.0.190.0110.00517.38
8.0.180.0110.00417.33
8.0.170.0090.00517.32
8.0.160.0100.00517.33
8.0.150.0100.00417.34
8.0.140.0110.00417.35
8.0.130.0140.00015.53
8.0.120.0140.00217.34
8.0.110.0080.00617.37
8.0.100.0150.00017.28
8.0.90.0090.00617.32
8.0.80.0100.00717.33
8.0.70.0130.00417.33
8.0.60.0100.00517.28
8.0.50.0100.00517.29
8.0.30.0150.00617.45
8.0.20.0150.00617.61
8.0.10.0070.00417.07
8.0.00.0140.00617.13
7.4.330.0090.00416.68
7.4.320.0130.00017.21
7.4.300.0090.00517.19
7.4.290.0100.00517.15
7.4.280.0070.00717.18
7.4.270.0080.00517.21
7.4.260.0110.00417.14
7.4.250.0090.00617.15
7.4.240.0110.00117.01
7.4.230.0080.00617.22
7.4.220.0100.00116.86
7.4.210.0060.01016.91
7.4.200.0100.00517.21
7.4.190.0200.00517.81
7.4.180.0190.00017.81
7.4.160.0210.00017.81
7.4.150.0170.00317.81
7.4.140.0130.00417.83
7.4.130.0140.00717.19
7.4.120.0120.00817.26
7.4.110.0110.00917.06
7.4.100.0140.00617.15
7.4.90.0140.00517.11
7.4.80.0150.00518.60
7.4.70.0110.00717.11
7.4.60.0130.00617.18
7.4.50.0130.00917.08
7.4.40.0140.01017.15
7.4.30.0170.00317.81
7.4.20.0180.00317.81
7.4.10.0180.00017.81
7.4.00.0150.00216.45
7.3.330.0060.00615.45
7.3.320.0070.00615.48
7.3.310.0070.00617.10
7.3.300.0100.00417.07
7.3.290.0080.00517.07
7.3.280.0180.00517.04
7.3.270.0140.00717.81
7.3.260.0120.00816.61
7.3.250.0160.00617.81
7.3.240.0130.00716.77
7.3.230.0160.00417.06
7.3.220.0180.00517.81
7.3.210.0130.00717.22
7.3.200.0110.01017.06
7.3.190.0130.00717.18
7.3.180.0190.00217.18
7.3.170.0100.00917.23
7.3.160.0130.00617.18
7.3.150.0130.01017.81
7.3.140.0190.00517.81
7.3.130.0230.00017.81
7.3.120.0170.00417.81
7.3.110.0220.00017.81
7.3.100.0190.00417.81
7.3.90.0180.00317.81
7.3.80.0220.00017.81
7.3.70.0150.00816.37
7.3.60.0110.00516.38
7.3.50.0130.00716.35
7.3.40.0050.01216.26
7.3.30.0140.00316.18
7.3.20.0100.00716.34
7.3.10.0150.00216.24
7.3.00.0100.00916.24
7.2.340.0190.00317.81
7.2.330.0110.00917.33
7.2.320.0120.01017.27
7.2.310.0140.00717.24
7.2.300.0090.01417.13
7.2.290.0120.00817.21
7.2.280.0110.01117.81
7.2.270.0190.00317.81
7.2.260.0180.00317.81
7.2.250.0170.00617.81
7.2.240.0230.00017.81
7.2.230.0110.01117.81
7.2.220.0210.00017.81
7.2.210.0080.01217.81
7.2.200.0100.00916.48
7.2.190.0140.00616.45
7.2.180.0130.00416.29
7.2.170.0130.00616.23
7.2.160.0150.00116.36
7.2.150.0180.00216.69
7.2.140.0120.01016.46
7.2.130.0170.00416.69
7.2.120.0130.00916.48
7.2.110.0160.00316.40
7.2.100.0140.00816.41
7.2.90.0120.00716.53
7.2.80.0160.00716.38
7.2.70.0150.00716.55
7.2.60.0160.00716.53
7.2.50.0140.00516.59
7.2.40.0560.00516.41
7.2.30.0160.00516.37
7.2.20.0110.00716.38
7.2.10.0180.00316.58
7.2.00.0100.01016.62
7.1.330.0180.00417.81
7.1.320.0280.00017.81
7.1.310.0170.00017.81
7.1.300.0120.00615.95
7.1.290.0100.00815.84
7.1.280.0110.00515.88
7.1.270.0160.00315.89
7.1.260.0110.00515.81
7.1.250.0160.00215.80
7.1.240.0160.00417.81
7.1.230.0180.00417.81
7.1.220.0120.00617.81
7.1.210.0130.00617.81
7.1.200.0160.00317.81
7.1.190.0130.00817.81
7.1.180.0180.00417.81
7.1.170.0140.00517.81
7.1.160.0140.00517.81
7.1.150.0150.00517.81
7.1.140.0230.00017.81
7.1.130.0240.00217.81
7.1.120.0050.01617.81
7.1.110.0170.00017.81
7.1.100.0170.00017.81
7.1.90.0150.00317.81
7.1.80.0100.00717.81
7.1.70.0100.00717.81
7.1.60.0190.00017.81
7.1.50.0170.00017.81
7.1.40.0150.00317.81
7.1.30.0150.00317.81
7.1.20.0140.00317.81
7.1.10.0100.00717.81
7.1.00.0150.00417.81

preferences:
30.5 ms | 403 KiB | 5 Q