3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @package gm_Tracking */ /* Plugin Name: User-tracking codes for GM Plugin URI: http://www.groupemoniteur.fr/ Description: Adds js codes for user-tracking Version: 1.0 Author: Pierre GERRIER Author URI: mailto:pierre@gerrier.fr License: GPLv2 or later */ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ if(!class_exists('gmTracking')) { class gmTracking { static protected $default_trackers = array( 'CookieApprovalTracking' ); static public function get_defined_trackers() { $trackers = apply_filters('gm_tracking_default_trackers', self::$default_trackers); foreach($trackers as $tracker) { require_once(dirname(__FILE__) . '/gm_Tracking/' . $tracker . '.php'); } return apply_filters('gm_tracking_defined_trackers', $trackers); } static public function display_trackings() { $trackers = static::get_defined_trackers(); $codes = array(); foreach($trackers as $tracker) { if(class_exists($tracker)) { // TODO: add enable/disable flags $codes[$tracker] = $tracker::get_tracking_code(); } } echo implode($codes); } static public function admin_bar_init() { if(!is_super_admin() || !is_admin_bar_showing() || (isset($_SERVER['SCRIPT_NAME']) && 'wp-login.php' == basename($_SERVER['SCRIPT_NAME']))) { return; } add_action('admin_bar_menu', array(__CLASS__, 'admin_bar_menu'), 1000); } static public function admin_bar_menu(WP_Admin_Bar $wp_admin_bar) { $wp_admin_bar->add_menu(array( 'id' => 'gm-tracking', 'title' => 'Tracking', )); $trackers = static::get_defined_trackers(); foreach($trackers as $tracker) { if(class_exists($tracker)) { $wp_admin_bar->add_menu(array( 'id' => 'gm-tracking-' . $tracker, 'parent' => 'gm-tracking', 'title' => $tracker::get_admin_bar_label(), )); if(false !== $content = $tracker::get_admin_bar_content()) { if(!is_array($content)) { $content = array($content); } foreach($content as $k => $v) { $wp_admin_bar->add_menu(array( 'id' => 'gm-tracking-' . $tracker . '-' . $k, 'parent' => 'gm-tracking-' . $tracker, 'title' => $v, )); } } } } } } } if(class_exists('gmTracking')) { add_action('wp_footer', array('gmTracking', 'display_trackings')); add_action('admin_bar_init', array('gmTracking', 'admin_bar_init')); }

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.0110.00316.63
8.3.50.0120.00622.84
8.3.40.0090.00618.80
8.3.30.0070.00719.04
8.3.20.0070.01119.95
8.3.10.0040.00423.66
8.3.00.0080.00019.38
8.2.180.0110.00718.66
8.2.170.0110.00422.96
8.2.160.0040.01120.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00519.42
8.2.110.0080.00020.16
8.2.100.0090.00318.03
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0050.00517.63
8.2.60.0050.00318.02
8.2.50.0000.00818.07
8.2.40.0040.00418.09
8.2.30.0000.00819.54
8.2.20.0070.00017.68
8.2.10.0070.00017.99
8.2.00.0050.00317.79
8.1.280.0110.00425.92
8.1.270.0060.00323.92
8.1.260.0020.00526.35
8.1.250.0000.00728.09
8.1.240.0000.00923.73
8.1.230.0110.00019.09
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00917.13
8.1.190.0050.00317.35
8.1.180.0060.00318.10
8.1.170.0000.00918.47
8.1.160.0070.00022.09
8.1.150.0030.00518.84
8.1.140.0080.00017.28
8.1.130.0030.00317.81
8.1.120.0060.00317.45
8.1.110.0090.00017.29
8.1.100.0000.00717.34
8.1.90.0040.00417.40
8.1.80.0070.00017.37
8.1.70.0030.00317.30
8.1.60.0060.00317.54
8.1.50.0030.00517.50
8.1.40.0040.00417.50
8.1.30.0040.00417.43
8.1.20.0030.00617.57
8.1.10.0040.00417.51
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0070.00016.62
8.0.280.0040.00418.41
8.0.270.0000.00717.23
8.0.260.0030.00317.15
8.0.250.0000.00716.95
8.0.240.0040.00416.95
8.0.230.0040.00416.99
8.0.220.0000.00716.86
8.0.210.0000.00716.87
8.0.200.0070.00017.02
8.0.190.0040.00417.01
8.0.180.0030.00416.92
8.0.170.0040.00416.96
8.0.160.0070.00017.00
8.0.150.0050.00216.80
8.0.140.0000.00716.96
8.0.130.0030.00313.47
8.0.120.0100.00015.09
8.0.110.0080.00315.14
8.0.100.0080.00315.20
8.0.90.0070.00415.20
8.0.80.0060.00815.16
8.0.70.0050.00315.21
8.0.60.0070.00115.18
8.0.50.0060.00215.19
8.0.30.0090.00815.71
8.0.20.0090.01016.08
8.0.10.0020.00715.13
8.0.00.0060.00915.71
7.4.330.0030.00315.00
7.4.320.0030.00316.57
7.4.300.0070.00016.56
7.4.290.0050.00216.53
7.4.280.0070.00016.53
7.4.270.0070.00016.55
7.4.260.0000.00716.46
7.4.250.0050.00314.79
7.4.240.0020.00515.37
7.4.230.0080.00214.90
7.4.220.0120.00914.84
7.4.210.0040.01314.88
7.4.200.0070.00314.84
7.4.190.0120.00013.32
7.4.180.0030.00313.36
7.4.160.0120.00214.90
7.4.150.0080.00515.29
7.4.140.0070.00716.29
7.4.130.0100.00615.41
7.4.120.0060.01015.42
7.4.110.0030.01214.81
7.4.100.0060.00914.86
7.4.90.0120.00314.95
7.4.80.0140.00116.23
7.4.70.0100.00814.79
7.4.60.0110.00314.96
7.4.50.0080.00114.73
7.4.40.0090.00614.75
7.4.30.0080.00514.91
7.4.20.0040.00813.13
7.4.10.0040.00913.25
7.4.00.0090.00714.42
7.3.330.0000.00513.32
7.3.320.0000.00613.16
7.3.310.0050.00614.81
7.3.300.0070.00314.65
7.3.290.0060.00614.79
7.3.280.0060.01015.57
7.3.270.0110.00715.35
7.3.260.0090.00714.94
7.3.250.0080.00815.31
7.3.240.0110.00614.93
7.3.230.0100.00614.92
7.3.220.0050.00913.09
7.3.210.0060.00814.85
7.3.200.0100.00616.28
7.3.190.0080.00914.82
7.3.180.0090.00514.88
7.3.170.0150.00314.74
7.3.160.0090.00614.91
7.3.150.0070.00413.31
7.3.140.0060.00313.33
7.3.130.0030.00513.14
7.3.120.0080.00614.17
7.3.110.0050.00814.35
7.3.100.0110.00214.27
7.3.90.0040.00614.46
7.3.80.0020.00614.25
7.3.70.0070.00614.20
7.3.60.0050.00614.27
7.3.50.0070.00414.24
7.3.40.0040.00614.08
7.3.30.0050.00614.39
7.3.20.0060.00516.02
7.3.10.0060.00815.93
7.3.00.0040.00916.09
7.2.340.0100.00313.08
7.2.330.0110.00514.74
7.2.320.0090.00914.99
7.2.310.0110.00714.79
7.2.300.0100.00714.79
7.2.290.0070.01014.75
7.2.280.0130.00013.21
7.2.270.0070.00713.06
7.2.260.0100.00313.04
7.2.250.0080.00814.23
7.2.240.0090.00714.34
7.2.230.0050.00914.36
7.2.220.0080.00414.38
7.2.210.0090.00614.34
7.2.200.0060.00814.33
7.2.190.0080.00614.45
7.2.180.0070.00714.38
7.2.170.0060.00414.50
7.2.160.0050.00814.18
7.2.150.0080.00315.83
7.2.140.0100.00415.88
7.2.130.0100.00516.09
7.2.120.0060.00815.92
7.2.110.0080.00515.87
7.2.100.0100.00216.03
7.2.90.0080.00516.02
7.2.80.0080.00316.06
7.2.70.0070.00616.01
7.2.60.0060.00716.12
7.2.50.0080.00616.08
7.2.40.0110.00116.07
7.2.30.0100.00515.87
7.2.20.0090.00616.11
7.2.10.0100.00515.89
7.2.00.0060.00717.10
7.1.330.0060.00615.23
7.1.320.0050.00715.05
7.1.310.0030.00815.06
7.1.300.0070.00615.14
7.1.290.0050.00715.08
7.1.280.0050.00915.06
7.1.270.0080.00615.23
7.1.260.0090.00515.12
7.1.250.0050.00814.94
7.1.240.0120.00014.21
7.1.230.0070.00514.28
7.1.220.0120.00014.08
7.1.210.0110.00214.21
7.1.200.0130.00114.90
7.1.190.0090.00214.27
7.1.180.0090.00414.14
7.1.170.0070.00514.15
7.1.160.0120.00014.03
7.1.150.0080.00314.04
7.1.140.0120.00014.17
7.1.130.0120.00014.16
7.1.120.0130.00014.24
7.1.110.0080.00414.24
7.1.100.0090.00316.01
7.1.90.0060.00614.07
7.1.80.0040.00814.24
7.1.70.0070.00515.35
7.1.60.0060.01116.88
7.1.50.0150.00924.32
7.1.40.0090.00214.20
7.1.30.0080.00414.06
7.1.20.0090.00314.05
7.1.10.0080.00414.21
7.1.00.0050.04118.29
7.0.330.0120.00014.00
7.0.320.0070.00414.20
7.0.310.0120.00014.17
7.0.300.0080.00313.99
7.0.290.0080.00414.16
7.0.280.0090.00214.14
7.0.270.0080.00314.25
7.0.260.0080.00413.99
7.0.250.0090.00314.27
7.0.240.0080.00414.17
7.0.230.0050.00514.09
7.0.220.0060.00614.19
7.0.210.0080.00414.23
7.0.200.0050.00415.43
7.0.190.0070.00714.03
7.0.180.0080.00414.24
7.0.170.0090.00314.14
7.0.160.0080.00414.05
7.0.150.0070.00414.05
7.0.140.0090.03318.08
7.0.130.0060.00614.04
7.0.120.0060.00614.08
7.0.110.0040.02917.06
7.0.100.0070.04217.08
7.0.90.0060.04317.09
7.0.80.0060.02317.04
7.0.70.0070.02017.00
7.0.60.0060.02617.05
7.0.50.0090.01817.22
7.0.40.0060.02217.26
7.0.30.0040.03017.03
7.0.20.0050.02917.06
7.0.10.0050.02517.15
7.0.00.0040.02517.14
5.6.400.0090.00212.65
5.6.390.0110.00012.46
5.6.380.0080.00312.46
5.6.370.0070.00512.39
5.6.360.0040.00712.60
5.6.350.0080.00412.40
5.6.340.0080.00312.73
5.6.330.0120.00012.61
5.6.320.0070.00512.44
5.6.310.0080.00412.45
5.6.300.0060.00612.56
5.6.290.0080.00412.62
5.6.280.0060.03816.78
5.6.270.0050.00512.45
5.6.260.0030.02416.71
5.6.250.0050.03516.61
5.6.240.0070.04316.66
5.6.230.0040.03016.69
5.6.220.0060.03216.62
5.6.210.0080.03516.75
5.6.200.0070.02216.97
5.6.190.0060.03716.94
5.6.180.0030.02416.84
5.6.170.0050.02216.92
5.6.160.0090.01816.87
5.6.150.0070.03216.87
5.6.140.0070.03516.84
5.6.130.0040.02716.94
5.6.120.0060.02916.89
5.6.110.0070.02216.88
5.6.100.0030.03416.88
5.6.90.0090.02716.84
5.6.80.0130.03616.55
5.6.70.0070.02516.45
5.6.60.0100.02716.70
5.6.50.0070.03516.51
5.6.40.0060.04316.49
5.6.30.0150.03516.61
5.6.20.0060.04016.69
5.6.10.0060.03916.51
5.6.00.0080.03716.55
5.5.380.0070.03716.46
5.5.370.0040.02316.43
5.5.360.0040.02416.47
5.5.350.0070.03016.45
5.5.340.0080.02016.65
5.5.330.0070.02716.67
5.5.320.0040.02316.74
5.5.310.0060.02316.79
5.5.300.0020.03716.78
5.5.290.0050.02216.70
5.5.280.0030.02416.74
5.5.270.0070.02116.79
5.5.260.0040.02516.64
5.5.250.0090.02116.58
5.5.240.0070.02816.41
5.5.230.0120.01516.54
5.5.220.0050.04216.42
5.5.210.0040.04116.54
5.5.200.0080.02116.39
5.5.190.0070.04016.30
5.5.180.0070.03016.45
5.5.170.0070.00412.63
5.5.160.0190.01516.31
5.5.150.0090.03916.42
5.5.140.0030.04316.44
5.5.130.0090.03216.23
5.5.120.0120.03716.29
5.5.110.0030.04616.30
5.5.100.0060.04116.44
5.5.90.0030.04216.34
5.5.80.0060.03516.43
5.5.70.0100.03716.40
5.5.60.0090.03816.32
5.5.50.0070.03816.28
5.5.40.0070.04016.50
5.5.30.0080.04116.37
5.5.20.0100.04016.52
5.5.10.0040.04316.33
5.5.00.0050.04516.28
5.4.450.0070.03715.91
5.4.440.0060.02216.03
5.4.430.0090.01816.00
5.4.420.0100.02016.04
5.4.410.0090.02916.03
5.4.400.0070.03215.84
5.4.390.0050.02015.86
5.4.380.0070.02815.70
5.4.370.0050.02515.76
5.4.360.0040.04315.99
5.4.350.0070.04015.83
5.4.340.0080.03815.77
5.4.330.0100.00012.57
5.4.320.0060.04015.81
5.4.310.0070.03315.83
5.4.300.0060.02115.87
5.4.290.0040.04315.76
5.4.280.0050.02515.85
5.4.270.0070.04015.89
5.4.260.0120.03515.78
5.4.250.0110.03815.82
5.4.240.0060.04315.78
5.4.230.0100.03715.69
5.4.220.0070.04015.79
5.4.210.0110.03515.73
5.4.200.0060.03815.70
5.4.190.0120.03015.59
5.4.180.0120.03315.63
5.4.170.0020.03915.70
5.4.160.0060.03915.86
5.4.150.0090.03715.64
5.4.140.0130.03014.50
5.4.130.0050.02514.47
5.4.120.0060.03914.42
5.4.110.0040.04114.58
5.4.100.0070.03014.54
5.4.90.0070.02314.59
5.4.80.0080.03714.46
5.4.70.0050.02314.41
5.4.60.0060.03914.53
5.4.50.0080.03514.52
5.4.40.0080.02414.60
5.4.30.0090.03614.62
5.4.20.0040.02714.58
5.4.10.0120.03314.60
5.4.00.0080.03514.24
5.3.290.0040.02813.80
5.3.280.0080.03313.83
5.3.270.0070.03113.75
5.3.260.0070.03013.85
5.3.250.0100.02013.86
5.3.240.0080.03913.67
5.3.230.0120.03513.71
5.3.220.0040.04213.66
5.3.210.0070.04013.73
5.3.200.0090.03613.70
5.3.190.0040.04413.83
5.3.180.0050.03013.81
5.3.170.0090.03713.90
5.3.160.0090.03913.94
5.3.150.0190.01313.69
5.3.140.0040.04113.76
5.3.130.0120.03713.74
5.3.120.0100.03513.81
5.3.110.0070.03413.86
5.3.100.0030.03013.57
5.3.90.0050.04213.61
5.3.80.0050.03613.38
5.3.70.0030.03213.39
5.3.60.0060.03913.46
5.3.50.0070.03813.55
5.3.40.0070.02813.36
5.3.30.0120.03213.32
5.3.20.0060.03913.16
5.3.10.0080.03313.18
5.3.00.0070.02313.16
5.2.170.0020.02211.76
5.2.160.0050.02611.73
5.2.150.0060.03111.83
5.2.140.0060.03211.81
5.2.130.0050.03311.83
5.2.120.0110.02711.80
5.2.110.0070.02811.82
5.2.100.0100.03211.70
5.2.90.0060.03111.72
5.2.80.0050.03111.79
5.2.70.0060.03211.65
5.2.60.0030.02811.62
5.2.50.0060.03011.79
5.2.40.0110.02511.66
5.2.30.0090.02811.65
5.2.20.0050.03011.67
5.2.10.0110.02011.66
5.2.00.0080.02811.54
5.1.60.0050.02911.16
5.1.50.0020.03011.21
5.1.40.0050.02211.38
5.1.30.0060.03011.27
5.1.20.0070.02711.24
5.1.10.0060.03011.34
5.1.00.0000.03011.16
5.0.50.0020.01511.13
5.0.40.0030.02311.13
5.0.30.0030.03211.13
5.0.20.0060.02111.13
5.0.10.0020.01411.13
5.0.00.0070.01411.13
4.4.90.0020.01311.13
4.4.80.0000.02011.13
4.4.70.0030.01811.13
4.4.60.0050.01711.13
4.4.50.0000.01511.13
4.4.40.0050.02511.13
4.4.30.0000.01711.13
4.4.20.0040.01711.13
4.4.10.0020.02011.13
4.4.00.0020.02811.13
4.3.110.0000.02011.13
4.3.100.0020.01711.13
4.3.90.0030.01811.13
4.3.80.0030.02511.13
4.3.70.0000.02011.13
4.3.60.0020.01711.13
4.3.50.0040.01711.13
4.3.40.0020.02511.13
4.3.30.0010.01211.13
4.3.20.0000.02011.13
4.3.10.0030.01511.13
4.3.00.0030.01811.13

preferences:
42.52 ms | 401 KiB | 5 Q