3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(!defined('GLPI_ROOT')) define('GLPI_ROOT', "../.."); function plugin_portswitch_install() { include_once( GLPI_ROOT."/plugins/portswitch/portswitch.class.php"); if(!(is_dir(GLPI_ROOT."/files/_plugins/portswitch"))) if(!(mkdir(GLPI_ROOT."/files/_plugins/portswitch"))) die("Konnte ".GLPI_ROOT."/files/_plugins/portswitch nicht erstellen."); PluginPortswitchPortswitch::$config_data[0]['name'] = "Name"; PluginPortswitchPortswitch::$config_data[0]['ip'] = "0.0.0.0"; PluginPortswitchPortswitch::$config_data[0]['port'] = "0"; PluginPortswitchPortswitch::$config_data[0]['kommentar'] = ""; PluginPortswitchPortswitch::$config_data[0]['status'] = "Unbekannt"; PluginPortswitchPortswitch::$config_data[0]['passwort'] = "Passwort"; PluginPortswitchPortswitch::$config_data[0]['stack'] = "0"; PluginPortswitchPortswitch::$config_data[0]['hostname'] = ""; PluginPortswitchPortswitch::saveConfig(); return true; } function plugin_portswitch_uninstall() { if(file_exists(GLPI_ROOT."/files/_plugins/portswitch/config.ini")) unlink(GLPI_ROOT."/files/_plugins/portswitch/config.ini"); if(is_dir(GLPI_ROOT."/files/_plugins/portswitch")) rmdir(GLPI_ROOT."/files/_plugins/portswitch"); return true; } ?>
Output for git.master, git.master_jit, rfc.property-hooks

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.97 ms | 401 KiB | 8 Q