3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( '#attached' => array ( 'library' => array ( 0 => 'system/base', 1 => 'classy/base', 2 => 'core/normalize', ), 'html_head_link' => array ( 0 => array ( 0 => array ( 'rel' => 'shortcut icon', 'href' => 'http://127.0.0.1/core/misc/favicon.ico', 'type' => 'image/vnd.microsoft.icon', ), ), ), 'html_head' => array ( 0 => array ( 0 => array ( '#tag' => 'meta', '#attributes' => array ( 'charset' => 'utf-8', ), '#weight' => -1000, ), 1 => 'system_meta_content_type', ), 1 => array ( 0 => array ( '#type' => 'html_tag', '#tag' => 'meta', '#attributes' => array ( 'name' => 'Generator', 'content' => 'Drupal 8 (https://www.drupal.org)', ), ), 1 => 'system_meta_generator', ), 2 => array ( 0 => array ( '#tag' => 'meta', '#attributes' => array ( 'name' => 'MobileOptimized', 'content' => 'width', ), ), 1 => 'MobileOptimized', ), 3 => array ( 0 => array ( '#tag' => 'meta', '#attributes' => array ( 'name' => 'HandheldFriendly', 'content' => 'true', ), ), 1 => 'HandheldFriendly', ), 4 => array ( 0 => array ( '#tag' => 'meta', '#attributes' => array ( 'name' => 'viewport', 'content' => 'width=device-width, initial-scale=1.0', ), ), 1 => 'viewport', ), ), ), ); function system_module_test_page_attachments_alter(&$page) { // Remove the HTML5 mobile meta-tags. $meta_tags_to_remove = ['MobileOptimized', 'HandheldFriendly', 'viewport', 'cleartype']; foreach ($page['#attached']['html_head'] as $index => $parts) { if (in_array($parts[1], $meta_tags_to_remove)) { unset($page['#attached']['html_head'][$index]); } } } system_module_test_page_attachments_alter($array); 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.0120.00316.50
8.3.50.0130.00618.18
8.3.40.0140.00418.71
8.3.30.0040.01118.57
8.3.20.0040.00420.14
8.3.10.0030.00623.67
8.3.00.0030.00619.15
8.2.180.0110.01116.37
8.2.170.0070.01422.96
8.2.160.0100.00722.30
8.2.150.0000.01024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00517.75
8.2.110.0060.00321.03
8.2.100.0040.00817.59
8.2.90.0080.00017.75
8.2.80.0050.00317.97
8.2.70.0050.00318.05
8.2.60.0060.00318.05
8.2.50.0040.00418.10
8.2.40.0060.00320.46
8.2.30.0000.00720.67
8.2.20.0000.00717.84
8.2.10.0030.00518.12
8.2.00.0030.00518.19
8.1.280.0060.00925.92
8.1.270.0000.00823.92
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00622.02
8.1.230.0120.00019.02
8.1.220.0000.00817.77
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0040.00417.25
8.1.180.0080.00018.10
8.1.170.0050.00218.56
8.1.160.0050.00321.87
8.1.150.0000.00718.76
8.1.140.0000.00719.46
8.1.130.0050.00317.59
8.1.120.0040.00417.47
8.1.110.0040.00417.50
8.1.100.0040.00417.50
8.1.90.0000.00717.35
8.1.80.0040.00417.43
8.1.70.0000.00817.45
8.1.60.0000.00717.52
8.1.50.0040.00417.43
8.1.40.0000.00917.54
8.1.30.0000.00817.60
8.1.20.0040.00417.55
8.1.10.0040.00417.63
8.1.00.0040.00417.53
8.0.300.0050.00219.70
8.0.290.0040.00416.75
8.0.280.0080.00018.46
8.0.270.0030.00317.18
8.0.260.0030.00317.26
8.0.250.0040.00416.93
8.0.240.0050.00216.90
8.0.230.0030.00416.94
8.0.220.0000.00716.88
8.0.210.0030.00516.88
8.0.200.0000.00616.84
8.0.190.0040.00416.84
8.0.180.0040.00416.98
8.0.170.0000.00816.83
8.0.160.0000.00716.92
8.0.150.0040.00416.81
8.0.140.0070.00016.92
8.0.130.0060.00013.32
8.0.120.0080.00016.84
8.0.110.0000.00816.81
8.0.100.0000.00716.89
8.0.90.0030.00516.79
8.0.80.0090.00616.83
8.0.70.0020.00516.90
8.0.60.0040.00416.82
8.0.50.0000.00716.77
8.0.30.0120.00817.09
8.0.20.0140.00917.40
8.0.10.0040.00416.98
8.0.00.0100.01116.79
7.4.330.0000.00515.10
7.4.320.0000.00916.63
7.4.300.0000.00616.52
7.4.290.0040.00416.52
7.4.280.0070.00016.49
7.4.270.0080.00016.59
7.4.260.0000.00816.62
7.4.250.0040.00416.55
7.4.240.0000.00716.50
7.4.230.0030.00316.31
7.4.220.0180.00916.36
7.4.210.0120.00516.63
7.4.200.0000.00716.71
7.4.160.0090.00616.67
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0140.00616.48
7.4.120.0090.00916.41
7.4.110.0130.00416.54
7.4.100.0180.00716.46
7.4.90.0130.00616.46
7.4.80.0180.00019.39
7.4.70.0090.00916.53
7.4.60.0100.00716.48
7.4.50.0080.00016.55
7.4.40.0090.01216.30
7.4.30.0100.01316.50
7.4.00.0110.00715.11
7.3.330.0060.00013.17
7.3.320.0000.00513.41
7.3.310.0030.00316.37
7.3.300.0030.00316.34
7.3.290.0000.00616.44
7.3.280.0090.01116.38
7.3.270.0100.00717.40
7.3.260.0090.00616.63
7.3.240.0050.01416.53
7.3.230.0100.01016.60
7.3.210.0070.01116.45
7.3.200.0090.00916.42
7.3.190.0110.00916.46
7.3.180.0060.01516.34
7.3.170.0060.01016.27
7.3.160.0090.00916.41
7.2.330.0070.01016.67
7.2.320.0150.00316.71
7.2.310.0030.01316.74
7.2.300.0140.00916.72
7.2.290.0060.01216.80
7.2.60.0070.00716.79
7.2.00.0060.00918.91
7.1.200.0060.00315.96
7.1.100.0100.01018.33
7.1.70.0030.00717.24
7.1.60.0100.01019.43
7.1.50.0100.00316.99
7.1.00.0030.07722.54
7.0.200.0040.01114.70
7.0.60.0030.08719.95
7.0.50.0100.07717.82
7.0.40.0100.07720.09
7.0.30.0270.07320.19
7.0.20.0370.07720.25
7.0.10.0100.04020.30
7.0.00.0130.08720.09
5.6.280.0030.03720.86
5.6.210.0070.08320.56
5.6.200.0070.03718.15
5.6.190.0130.07320.66
5.6.180.0330.04320.50
5.6.170.0230.05320.59
5.6.160.0030.05320.54
5.6.150.0070.07718.18
5.6.140.0000.07018.18
5.6.130.0130.03718.28
5.6.120.0030.07721.13
5.6.110.0300.05021.02
5.6.100.0100.08321.14
5.6.90.0100.06720.98
5.6.80.0070.08020.54
5.5.350.0200.03320.45
5.5.340.0070.05018.04
5.5.330.0100.04020.36
5.5.320.0200.03720.30
5.5.310.0430.06720.27
5.5.300.0000.04317.98
5.5.290.0030.07017.98
5.5.280.0130.03320.81
5.5.270.0030.04020.88
5.5.260.0100.07320.77
5.5.250.0100.07720.80
5.5.240.0070.07320.29
5.4.450.0530.06319.31
5.4.440.0670.05319.20
5.4.430.0730.05719.33
5.4.420.0670.05319.30
5.4.410.0570.05719.57
5.4.400.0570.05019.06
5.4.390.0670.05719.22
5.4.380.0630.05719.01
5.4.370.0800.06319.12
5.4.360.0600.05719.15
5.4.350.0630.05719.31
5.4.340.0700.05319.01
5.4.320.0570.05018.88
5.4.310.0530.05019.15
5.4.300.0530.06019.27
5.4.290.0730.05019.05
5.4.280.0630.05019.25
5.4.270.0600.04319.38
5.4.260.0570.04719.22
5.4.250.0670.05319.11
5.4.240.0600.05319.00
5.4.230.0500.05719.00
5.4.220.0600.05019.22
5.4.210.0470.06019.24
5.4.200.0830.04718.86
5.4.190.0800.06319.13
5.4.180.0730.06019.02
5.4.170.0770.05719.00
5.4.160.0630.06019.18
5.4.150.0700.05319.13
5.4.140.0600.06016.53
5.4.130.0530.06016.39
5.4.120.0570.05316.39
5.4.110.0500.06316.51
5.4.100.0500.05716.21
5.4.90.0570.06016.63
5.4.80.0600.05016.59
5.4.70.0800.04716.42
5.4.60.0600.06016.41
5.4.50.0670.06716.49
5.4.40.0730.06316.56
5.4.30.0570.05016.57
5.4.20.0600.05716.19
5.4.10.0800.06316.54
5.4.00.0700.06015.90

preferences:
60.55 ms | 400 KiB | 5 Q