3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arraya = array( 'http://www.simplyathome.nl/partners/' => array( 'links' => array( 'http://www.eerenstein.nl/assortiment/goedkope-sigma-verf', 'https://www.kooistra-detectors.eu/', ), ), 'http://www.helex.nl/links/' => array( 'links' => array( 'https://www.kooistra-detectors.eu/', 'http://www.debruidslakei.nl/bruidsmode-alkmaar/', 'https://kubes.nl/', ), ), ); $arrayb = array( 'http://www.simplyathome.nl/partners/' => array( 'links' => array( 'https://www.google.nl/', 'http://www.eerenstein.nl/assortiment/goedkope-sigma-verf', ), ), 'http://www.helex.nl/links/' => array( 'links' => array( 'https://facebook.nl/', 'https://www.kooistra-detectors.eu/', 'http://www.debruidslakei.nl/bruidsmode-alkmaar/', //'https://kubes.nl/', 'http://example.com/', ), ), ); $final = array(); foreach ($arrayb as $keyb => $valueb) { if (in_array($valueb, $arraya[$keyb]['links'])) { unset($arraya[$keyb]['links'][$valueb]); //$final[$keya][$valuea]; } } //$arrayb = array_values($arrayb); print_r($arraya);

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.0120.00316.50
8.3.50.0090.00616.24
8.3.40.0070.00718.56
8.3.30.0140.00718.72
8.3.20.0040.00421.85
8.3.10.0040.00421.90
8.3.00.0040.00419.67
8.2.180.0150.00018.16
8.2.170.0100.01022.96
8.2.160.0110.00420.52
8.2.150.0000.00524.18
8.2.140.0080.00024.66
8.2.130.0050.00320.38
8.2.120.0000.00826.35
8.2.110.0060.00321.13
8.2.100.0040.00817.84
8.2.90.0090.00017.75
8.2.80.0000.00917.97
8.2.70.0000.00818.05
8.2.60.0030.00618.22
8.2.50.0050.00318.10
8.2.40.0030.00520.59
8.2.30.0000.00719.41
8.2.20.0000.00818.01
8.2.10.0000.00818.12
8.2.00.0050.00318.01
8.1.280.0070.01125.92
8.1.270.0080.00018.70
8.1.260.0080.00026.35
8.1.250.0070.00328.09
8.1.240.0090.00022.24
8.1.230.0110.00019.17
8.1.220.0040.00417.76
8.1.210.0080.00018.77
8.1.200.0000.01017.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0040.00420.13
8.1.160.0040.00418.96
8.1.150.0000.00820.33
8.1.140.0040.00419.62
8.1.130.0070.00018.93
8.1.120.0000.00717.43
8.1.110.0000.00817.54
8.1.100.0000.00817.36
8.1.90.0040.00417.41
8.1.80.0000.00717.51
8.1.70.0070.00017.36
8.1.60.0030.00617.63
8.1.50.0000.00717.42
8.1.40.0040.00417.52
8.1.30.0000.00817.56
8.1.20.0040.00417.62
8.1.10.0040.00417.51
8.1.00.0040.00417.46
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00718.48
8.0.270.0070.00017.31
8.0.260.0040.00418.96
8.0.250.0000.00716.87
8.0.240.0030.00517.00
8.0.230.0050.00317.01
8.0.220.0030.00316.78
8.0.210.0030.00316.91
8.0.200.0040.00416.91
8.0.190.0040.00416.96
8.0.180.0040.00416.95
8.0.170.0050.00316.93
8.0.160.0000.00716.89
8.0.150.0070.00016.95
8.0.140.0030.00516.74
8.0.130.0000.00513.27
8.0.120.0050.00316.89
8.0.110.0000.00716.95
8.0.100.0040.00416.73
8.0.90.0040.00416.70
8.0.80.0090.00916.92
8.0.70.0030.00516.91
8.0.60.0000.00817.02
8.0.50.0080.00016.78
8.0.30.0140.00417.10
8.0.20.0130.00817.40
8.0.10.0050.00317.09
8.0.00.0180.00016.96
7.4.330.0020.00215.55
7.4.320.0030.00316.52
7.4.300.0070.00016.53
7.4.290.0060.00016.50
7.4.280.0040.00416.61
7.4.270.0050.00216.62
7.4.260.0000.00716.60
7.4.250.0090.00016.47
7.4.240.0030.00316.63
7.4.230.0070.00016.43
7.4.220.0110.00816.57
7.4.210.0070.00716.51
7.4.200.0040.00416.70
7.4.160.0130.00216.51
7.4.150.0110.00817.40
7.4.140.0160.00517.86
7.4.130.0070.01016.51
7.4.120.0140.00916.43
7.4.110.0060.01216.57
7.4.100.0070.01716.58
7.4.90.0040.01116.55
7.4.80.0080.00819.39
7.4.70.0000.01616.62
7.4.60.0060.01016.43
7.4.50.0070.01016.54
7.4.40.0090.00616.43
7.4.30.0140.01216.46
7.4.00.0060.00914.89
7.3.330.0050.00013.23
7.3.320.0050.00013.10
7.3.310.0080.00016.27
7.3.300.0030.00316.32
7.3.290.0050.00916.40
7.3.280.0100.00716.32
7.3.270.0040.01417.40
7.3.260.0180.00316.42
7.3.250.0120.00716.41
7.3.240.0080.01016.41
7.3.230.0140.00416.50
7.3.210.0100.01016.23
7.3.200.0170.00616.34
7.3.190.0140.00416.57
7.3.180.0060.01016.38
7.3.170.0100.00716.59
7.3.160.0090.00616.56
7.3.120.0100.00714.55
7.3.110.0100.00714.85
7.3.100.0040.01114.89
7.3.90.0000.00915.07
7.3.80.0070.00414.88
7.3.70.0030.01414.94
7.3.60.0050.00515.01
7.3.50.0000.01614.73
7.3.40.0070.00714.71
7.3.30.0090.00314.90
7.3.20.0030.01116.77
7.3.10.0110.00316.69
7.3.00.0000.01416.68
7.2.330.0090.00916.70
7.2.320.0060.01516.66
7.2.310.0090.00616.59
7.2.300.0200.02616.61
7.2.290.0110.00716.59
7.2.240.0030.00915.02
7.2.230.0040.00814.76
7.2.220.0040.01115.04
7.2.210.0000.01415.02
7.2.200.0070.00714.98
7.2.190.0100.00614.90
7.2.180.0030.01214.73
7.2.170.0070.01014.97
7.2.160.0150.00314.98
7.2.150.0090.00916.82
7.2.140.0080.00316.89
7.2.130.0000.01316.98
7.2.120.0070.00716.84
7.2.110.0000.01517.04
7.2.100.0040.00716.92
7.2.90.0040.01117.00
7.2.80.0000.01316.98
7.2.70.0030.01417.03
7.2.60.0050.01116.83
7.2.50.0020.01116.88
7.2.40.0000.01516.95
7.2.30.0030.01017.02
7.2.20.0000.01316.99
7.2.10.0060.01016.73
7.2.00.0040.01116.69
7.1.330.0070.01015.61
7.1.320.0030.01016.05
7.1.310.0070.01016.01
7.1.300.0120.00315.59
7.1.290.0060.00615.86
7.1.280.0110.00415.80
7.1.270.0120.00615.61
7.1.260.0090.00615.46
7.1.250.0000.01415.68
7.1.200.0030.00915.93
7.1.70.0050.00317.29
7.1.60.0040.00817.12
7.1.50.0000.01116.90
7.1.40.0040.00716.61
7.1.30.0060.00616.73
7.1.20.0100.00316.87
7.1.10.0070.00716.88
7.1.00.0000.00816.64
7.0.200.0090.00016.75
7.0.190.0000.00816.74
7.0.180.0000.00916.40
7.0.170.0050.00516.20
7.0.160.0060.00316.27
7.0.150.0000.00916.14
7.0.140.0000.00716.22
7.0.130.0000.01016.70
7.0.120.0000.00816.67
7.0.110.0000.00816.32
7.0.100.0030.00616.54
7.0.90.0060.00616.43
7.0.80.0000.00816.62
7.0.70.0070.00016.12
7.0.60.0050.00316.25
7.0.50.0050.00316.47
7.0.40.0030.00614.82
7.0.30.0030.00614.82
7.0.20.0060.00314.82
7.0.10.0030.00514.82
7.0.00.0040.00414.82

preferences:
41.86 ms | 400 KiB | 5 Q