3v4l.org

run code in 300+ PHP versions simultaneously
<?php function plugin_init_portswitch() { // + $CFG_GLPI global $PLUGIN_HOOKS, $CFG_GLPI; // + CSRF Compliance $PLUGIN_HOOKS['csrf_compliant']['portswitch'] = true; // + Plugin::registerClass('PluginPortswitchPortswitch', array( 'addtabon' => 'Plugin')); // + Benutzersitzung gültig? Dann auf Formular umleiten if (Session::getLoginUserID()) { $PLUGIN_HOOKS['menu_entry']['portswitch'] = 'front/portswitch.php'; } return true; } // + Versionshinweise (vorher in plugin_portswitch_classes.php // minGlpiVersion 0.71 -> 0.84 // version 1.0 -> 1.1 function plugin_version_portswitch() { return array( 'name' => "portswitch", 'minGlpiVersion' => '0.84', 'version' => '1.1', 'author' => 'Lukas Reitz', 'homepage' => ' '); } function plugin_portswitch_check_prerequisites() { // - /*if(GLPI_VERSION >= 0.83) return true; echo "Plugin benoetigt mindestens Version 0.83"; return false;*/ // + if (version_compare(GLPI_Version, '0.84', 'lt')) { _e('Dieses Plugin benötigt GLPI >= 0.84'); return false; } } function plugin_portswitch_check_config() { return true; } ?>

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.0090.00616.50
8.3.50.0100.00521.97
8.3.40.0140.00018.60
8.3.30.0030.01019.05
8.3.20.0040.00420.39
8.3.10.0040.00423.66
8.3.00.0040.00418.91
8.2.180.0120.00318.26
8.2.170.0070.00722.96
8.2.160.0000.01419.09
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0040.00420.86
8.2.110.0040.00422.20
8.2.100.0080.00419.33
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0080.00017.50
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0050.00319.69
8.2.30.0040.00418.23
8.2.20.0080.00017.60
8.2.10.0040.00417.94
8.2.00.0050.00217.60
8.1.280.0100.00725.92
8.1.270.0070.00723.82
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0140.00723.87
8.1.230.0060.00619.11
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0110.00317.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0000.00818.57
8.1.160.0040.00422.00
8.1.150.0040.00418.57
8.1.140.0050.00317.24
8.1.130.0000.00717.77
8.1.120.0050.00317.28
8.1.110.0040.00417.22
8.1.100.0040.00417.32
8.1.90.0000.00717.30
8.1.80.0000.00817.30
8.1.70.0000.00717.24
8.1.60.0040.00417.45
8.1.50.0030.00517.37
8.1.40.0000.00717.46
8.1.30.0070.00317.41
8.1.20.0050.00217.59
8.1.10.0080.00017.27
8.1.00.0090.00017.33
8.0.300.0050.00318.77
8.0.290.0000.00717.05
8.0.280.0000.00718.20
8.0.270.0040.00417.12
8.0.260.0000.00617.13
8.0.250.0070.00016.72
8.0.240.0030.00616.84
8.0.230.0070.00016.85
8.0.220.0030.00316.77
8.0.210.0000.00716.77
8.0.200.0000.00616.85
8.0.190.0030.00616.80
8.0.180.0040.00416.82
8.0.170.0040.00416.83
8.0.160.0030.00516.82
8.0.150.0050.00216.64
8.0.140.0070.00016.66
8.0.130.0030.00313.15
8.0.120.0080.00016.59
8.0.110.0070.00016.70
8.0.100.0040.00416.81
8.0.90.0070.00016.65
8.0.80.0060.00916.77
8.0.70.0000.00816.80
8.0.60.0040.00416.80
8.0.50.0040.00416.64
8.0.30.0140.01016.95
8.0.20.0130.00517.40
8.0.10.0050.00216.92
8.0.00.0090.01116.54
7.4.330.0000.00515.02
7.4.320.0070.00016.41
7.4.300.0070.00316.33
7.4.290.0040.00416.43
7.4.280.0000.00716.27
7.4.270.0040.00416.36
7.4.260.0040.00416.36
7.4.250.0070.00016.34
7.4.240.0040.00316.39
7.4.230.0070.00016.41
7.4.220.0140.00416.32
7.4.210.0050.00916.47
7.4.200.0080.00016.41
7.4.190.0000.00716.63
7.4.160.0060.01016.25
7.4.150.0100.00717.40
7.4.140.0080.00817.86
7.4.130.0130.00616.42
7.4.120.0130.00616.42
7.4.110.0090.00916.30
7.4.100.0100.00716.35
7.4.90.0090.01516.27
7.4.80.0180.00319.39
7.4.70.0100.00716.51
7.4.60.0070.01016.31
7.4.50.0020.00216.36
7.4.40.0120.00916.47
7.4.30.0030.01416.52
7.4.10.0070.01014.85
7.4.00.0090.00614.68
7.3.330.0000.00513.19
7.3.320.0000.00513.05
7.3.310.0070.00016.18
7.3.300.0040.00416.24
7.3.290.0040.01116.32
7.3.280.0080.01116.18
7.3.270.0170.00717.40
7.3.260.0100.00616.22
7.3.250.0130.00816.22
7.3.240.0150.00816.38
7.3.230.0090.00916.39
7.3.210.0120.00616.22
7.3.200.0110.00719.39
7.3.190.0120.00816.15
7.3.180.0080.00816.16
7.3.170.0000.01616.27
7.3.160.0060.00916.13
7.3.130.0080.00814.71
7.3.120.0090.00714.70
7.3.110.0080.01014.71
7.3.100.0030.01114.83
7.3.90.0050.01314.73
7.3.80.0020.01014.88
7.3.70.0080.00514.73
7.3.60.0080.00614.39
7.3.50.0040.00914.58
7.3.40.0050.01014.73
7.3.30.0060.00814.67
7.3.20.0080.00716.47
7.3.10.0140.00016.54
7.3.00.0070.00416.55
7.2.330.0060.01116.45
7.2.320.0170.00616.38
7.2.310.0120.01016.48
7.2.300.0130.00416.45
7.2.290.0170.00716.34
7.2.260.0010.01114.87
7.2.250.0140.00414.82
7.2.240.0050.01014.84
7.2.230.0050.01015.08
7.2.220.0050.01314.71
7.2.210.0070.00614.86
7.2.200.0070.00714.74
7.2.190.0030.01414.77
7.2.180.0040.01114.86
7.2.170.0040.01114.88
7.2.160.0070.00814.82
7.2.150.0060.00916.53
7.2.140.0040.01116.74
7.2.130.0000.01416.80
7.2.120.0090.00816.65
7.2.110.0070.01016.71
7.2.100.0020.01016.56
7.2.90.0070.00816.71
7.2.80.0040.00916.63
7.2.70.0090.00516.73
7.2.60.0040.01216.84
7.2.50.0070.00716.69
7.2.40.0050.00616.71
7.2.30.0050.01016.63
7.2.20.0080.00916.67
7.2.10.0040.00916.78
7.2.00.0070.00917.54
7.1.330.0070.00815.44
7.1.320.0080.00815.44
7.1.310.0070.00515.41
7.1.300.0070.00715.55
7.1.290.0010.01115.76
7.1.280.0040.01215.66
7.1.270.0070.00715.55
7.1.260.0070.00715.55
7.1.250.0060.00715.65
7.1.240.0050.01015.58
7.1.230.0050.00615.70
7.1.220.0090.00715.67
7.1.210.0040.00915.43
7.1.200.0050.00815.52
7.1.190.0030.01015.58
7.1.180.0030.00915.63
7.1.170.0020.00915.48
7.1.160.0080.00515.58
7.1.150.0060.00715.48
7.1.140.0070.00615.57
7.1.130.0060.00915.49
7.1.120.0040.00815.65
7.1.110.0110.00315.75
7.1.100.0040.00816.54
7.1.90.0050.00815.49
7.1.80.0050.00915.74
7.1.70.0060.00516.05
7.1.60.0030.01016.88
7.1.50.0030.01115.99
7.1.40.0060.00615.61
7.1.30.0050.00715.56
7.1.20.0020.01215.49
7.1.10.0060.00915.52
7.1.00.0030.03217.93
7.0.330.0050.01015.29
7.0.320.0050.00715.39
7.0.310.0020.00915.24
7.0.300.0040.00615.25
7.0.290.0080.00615.14
7.0.280.0070.00515.21
7.0.270.0050.01015.27
7.0.260.0040.00715.17
7.0.250.0060.00615.24
7.0.240.0030.00715.31
7.0.230.0070.00515.19
7.0.220.0040.00915.29
7.0.210.0050.00515.25
7.0.200.0050.00615.75
7.0.190.0040.00715.39
7.0.180.0040.00815.25
7.0.170.0070.00415.30
7.0.160.0040.00915.21
7.0.150.0070.00415.38
7.0.140.0060.02617.45
7.0.130.0050.00715.37
7.0.120.0050.00515.28
7.0.110.0020.01215.23
7.0.100.0070.00415.30
7.0.90.0050.00515.29
7.0.80.0030.00815.22
7.0.70.0030.00615.11
7.0.60.0110.02916.76
7.0.50.0070.03116.21
7.0.40.0080.03015.51
7.0.30.0130.02815.62
7.0.20.0110.02615.62
7.0.10.0100.01915.61
7.0.00.0030.03815.66
5.6.400.0070.00614.22
5.6.390.0030.01214.26
5.6.380.0090.00514.24
5.6.370.0080.00714.13
5.6.360.0060.00713.94
5.6.350.0030.00914.28
5.6.340.0070.00514.04
5.6.330.0130.00314.10
5.6.320.0080.00514.14
5.6.310.0050.00814.15
5.6.300.0070.00713.97
5.6.290.0020.00813.80
5.6.280.0050.01014.11
5.6.270.0050.00914.18
5.6.260.0050.00714.08
5.6.250.0000.01313.97
5.6.240.0050.00514.17
5.6.230.0020.01114.04
5.6.220.0060.00413.84
5.6.210.0040.03316.29
5.6.200.0020.02315.44
5.6.190.0060.03616.28
5.6.180.1400.01916.29
5.6.170.0120.02916.19
5.6.160.0070.02816.21
5.6.150.0040.02015.45
5.6.140.0090.02015.42
5.6.130.0010.02615.46
5.6.120.0100.01816.33
5.6.110.0060.03216.50
5.6.100.0120.02016.32
5.6.90.0030.02016.19
5.6.80.0060.02016.33
5.6.70.0080.02816.16
5.6.60.0060.00714.30
5.6.50.0070.00814.17
5.6.40.0100.00713.97
5.6.30.0050.00913.99
5.6.20.0100.00514.08
5.6.10.0060.00913.98
5.6.00.0090.00514.08
5.5.380.0020.01013.97
5.5.370.0080.00614.13
5.5.360.0070.00614.21
5.5.350.0150.02516.10
5.5.340.0040.01715.26
5.5.330.0060.03216.27
5.5.320.0160.01716.00
5.5.310.0100.02716.22
5.5.300.0060.03115.50
5.5.290.0050.02915.19
5.5.280.0070.03316.26
5.5.270.0080.03216.41
5.5.260.0070.03016.28
5.5.250.0060.03216.31
5.5.240.0070.03216.01
5.5.230.0060.00713.89
5.5.220.0050.00914.21
5.5.210.0110.00813.98
5.5.200.0050.01013.94
5.5.190.0060.00913.97
5.5.180.0040.01314.16
5.5.170.0110.00313.91
5.5.160.0120.00413.79
5.5.150.0020.01113.94
5.5.140.0070.00613.81
5.5.130.0030.01013.94
5.5.120.0040.00814.23
5.5.110.0070.00313.89
5.5.100.0060.01013.99
5.5.90.0050.00813.89
5.5.80.0000.01313.94
5.5.70.0110.00214.13
5.5.60.0080.00414.09
5.5.50.0030.00713.93
5.5.40.0070.00913.79
5.5.30.0040.00813.89
5.5.20.0070.00913.75
5.5.10.0080.00413.77
5.5.00.0100.00113.95
5.4.450.0300.03014.28
5.4.440.0340.02314.27
5.4.430.0350.02014.25
5.4.420.0220.00514.27
5.4.410.0030.02714.10
5.4.400.0120.02014.01
5.4.390.0050.02413.90
5.4.380.0030.02513.99
5.4.370.0080.01513.97
5.4.360.0090.01613.85
5.4.350.0070.01611.75
5.4.340.0090.01411.75
5.4.330.0050.00611.52
5.4.320.0030.01711.79
5.4.310.0020.02411.86
5.4.300.0040.01811.91
5.4.290.0040.01611.87
5.4.280.0040.01811.84
5.4.270.0060.01511.86
5.4.260.0080.01511.72
5.4.250.0060.01711.82
5.4.240.0040.02011.85
5.4.230.0060.02011.80
5.4.220.0030.02311.83
5.4.210.0090.01711.82
5.4.200.0050.01811.82
5.4.190.0060.02111.85
5.4.180.0040.01811.89
5.4.170.0080.01511.80
5.4.160.0070.01611.68
5.4.150.0070.01411.74
5.4.140.0060.02211.63
5.4.130.0070.01611.71
5.4.120.0050.01611.73
5.4.110.0030.01811.70
5.4.100.0020.01811.63
5.4.90.0040.01811.73
5.4.80.0040.02411.64
5.4.70.0060.01411.58
5.4.60.0040.01711.72
5.4.50.0060.01511.63
5.4.40.0030.02311.76
5.4.30.0040.01711.70
5.4.20.0050.01611.72
5.4.10.0060.01611.72
5.4.00.0040.01611.52
5.3.290.0050.01611.84
5.3.280.0040.02011.75
5.3.270.0050.01711.72
5.3.260.0020.01811.82
5.3.250.0050.01611.81
5.3.240.0070.01411.74
5.3.230.0060.01611.77
5.3.220.0070.01411.75
5.3.210.0020.02211.74
5.3.200.0060.01611.75
5.3.190.0060.01711.76
5.3.180.0050.01411.84
5.3.170.0040.01611.79
5.3.160.0060.01511.78
5.3.150.0070.01511.79
5.3.140.0050.01611.79
5.3.130.0040.01811.70
5.3.120.0070.01711.72
5.3.110.0040.01811.78
5.3.100.0060.01611.56
5.3.90.0030.01711.60
5.3.80.0040.01511.59
5.3.70.0030.01711.55
5.3.60.0030.01711.59
5.3.50.0050.01611.50
5.3.40.0040.01711.53
5.3.30.0060.02111.53
5.3.20.0010.02011.40
5.3.10.0020.02111.25
5.3.00.0060.01511.37
5.2.170.0050.0329.23
5.2.160.0060.0279.22
5.2.150.0060.0289.23
5.2.140.0040.0319.23
5.2.130.0030.0319.19
5.2.120.0040.0299.18
5.2.110.0060.0299.19
5.2.100.0080.0319.18
5.2.90.0070.0339.18
5.2.80.0040.0339.18
5.2.70.0050.0319.18
5.2.60.0060.0289.14
5.2.50.0080.0419.11
5.2.40.0100.0269.09
5.2.30.0090.0359.06
5.2.20.0040.0339.04
5.2.10.0040.0288.95
5.2.00.0030.0348.82
5.1.60.0070.0338.09
5.1.50.0050.0278.09
5.1.40.0050.0288.07
5.1.30.0010.0318.43
5.1.20.0060.0308.44
5.1.10.0080.0298.17
5.1.00.0070.0258.17
5.0.50.0050.0196.64
5.0.40.0020.0226.51
5.0.30.0040.0366.32
5.0.20.0030.0216.29
5.0.10.0040.0206.27
5.0.00.0030.0346.26
4.4.90.0020.0174.78
4.4.80.0030.0164.75
4.4.70.0040.0154.75
4.4.60.0010.0184.76
4.4.50.0060.0134.77
4.4.40.0020.0274.71
4.4.30.0040.0154.76
4.4.20.0030.0164.84
4.4.10.0020.0174.85
4.4.00.0020.0284.76
4.3.110.0020.0184.67
4.3.100.0050.0204.66
4.3.90.0020.0164.64
4.3.80.0040.0234.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0030.0174.63
4.3.40.0040.0364.54
4.3.30.0040.0153.31
4.3.20.0030.0173.29
4.3.10.0010.0193.25
4.3.00.0200.0176.68

preferences:
44.39 ms | 401 KiB | 5 Q