3v4l.org

run code in 300+ PHP versions simultaneously
<?phpnamespace Catalogue\Constante;use Commun\Constante\Impl\OngletConstanteTrait;use Commun\Constante\IOngletConstante;/** * Classe ConstanteOngletUe * * Projet : Instm Ent 2013-2015 * Fichier créé par pierre-anthime.haras le 16/06/14 à 11:23 * * @copyright Copyright © Institut Mines Télécom 2013-2015, All Rights Reserved * @author ALYOTECH * @package Catalogue\Constante */class ConstanteOngletUe implements IOngletConstante{ use OngletConstanteTrait { OngletConstanteTrait::getTabOnglets insteadof ConstanteOngletUe; } /** @const le numero de l'onglet info_gen */ const NUMBER_INFO_GEN = 1; /** @const le numero de l'onglet descriptif */ const NUMBER_DESCRIPTIF = 2; /** @const le numero de l'onglet organisation */ const NUMBER_ORGANISATION = 3; /** @const le numero de l'onglet pré-requis */ const NUMBER_PRE_REQUIS = 4; /** @const le numero de l'onglet acquisition */ const NUMBER_ACQUISITION = 5; /** @const le numero de l'onglet gestion interne */ const NUMBER_GESTION_INT = 6; /** @const le numero de l'onglet occurrences */ const NUMBER_OCCURRENCES = 7; /** * @var array le tableau des onglets de la fiche diplome */ private static $tabOnglets = array( self::NUMBER_INFO_GEN => array( self::ATTRIBUT_NAME => 'InformationsGenerales', self::ATTRIBUT_LIBELLE => 'Informations générales', self::ATTRIBUT_ACTION => 'informations-generales', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-info-gen' ), self::NUMBER_DESCRIPTIF => array( self::ATTRIBUT_NAME => 'DescriptifEtProgramme', self::ATTRIBUT_LIBELLE => 'Descriptif et programme', self::ATTRIBUT_ACTION => 'descriptif-et-programme', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-desc-et-prog' ), self::NUMBER_ORGANISATION => array( self::ATTRIBUT_NAME => 'Organisation', self::ATTRIBUT_LIBELLE => 'Organisation', self::ATTRIBUT_ACTION => 'organisation', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-organisation' ), self::NUMBER_PRE_REQUIS => array( self::ATTRIBUT_NAME => 'PreRequis', self::ATTRIBUT_LIBELLE => 'Pré-requis', self::ATTRIBUT_ACTION => 'pre-requis', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-pre-requis' ), self::NUMBER_ACQUISITION => array( self::ATTRIBUT_NAME => 'Acquisition', self::ATTRIBUT_LIBELLE => 'Acquisition', self::ATTRIBUT_ACTION => 'acquisition', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-acquisition' ), self::NUMBER_GESTION_INT => array( self::ATTRIBUT_NAME => 'GestionInterne', self::ATTRIBUT_LIBELLE => 'Gestion interne', self::ATTRIBUT_ACTION => 'gestion-interne', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-gestion-interne' ), self::NUMBER_OCCURRENCES => array( self::ATTRIBUT_NAME => 'Occurrences', self::ATTRIBUT_LIBELLE => 'Occurrences', self::ATTRIBUT_ACTION => 'occurrences', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-occurrences' ) ); /** * @return array */ public static function getTabOnglets() { return self::$tabOnglets; }}
Output for 5.4.0 - 5.4.32, 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.3 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<?phpnamespace Catalogue\Constante;use Commun\Constante\Impl\OngletConstanteTrait;use Commun\Constante\IOngletConstante;/** * Classe ConstanteOngletUe * * Projet : Instm Ent 2013-2015 * Fichier créé par pierre-anthime.haras le 16/06/14 à 11:23 * * @copyright Copyright © Institut Mines Télécom 2013-2015, All Rights Reserved * @author ALYOTECH * @package Catalogue\Constante */class ConstanteOngletUe implements IOngletConstante{ use OngletConstanteTrait { OngletConstanteTrait::getTabOnglets insteadof ConstanteOngletUe; } /** @const le numero de l'onglet info_gen */ const NUMBER_INFO_GEN = 1; /** @const le numero de l'onglet descriptif */ const NUMBER_DESCRIPTIF = 2; /** @const le numero de l'onglet organisation */ const NUMBER_ORGANISATION = 3; /** @const le numero de l'onglet pré-requis */ const NUMBER_PRE_REQUIS = 4; /** @const le numero de l'onglet acquisition */ const NUMBER_ACQUISITION = 5; /** @const le numero de l'onglet gestion interne */ const NUMBER_GESTION_INT = 6; /** @const le numero de l'onglet occurrences */ const NUMBER_OCCURRENCES = 7; /** * @var array le tableau des onglets de la fiche diplome */ private static $tabOnglets = array( self::NUMBER_INFO_GEN => array( self::ATTRIBUT_NAME => 'InformationsGenerales', self::ATTRIBUT_LIBELLE => 'Informations générales', self::ATTRIBUT_ACTION => 'informations-generales', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-info-gen' ), self::NUMBER_DESCRIPTIF => array( self::ATTRIBUT_NAME => 'DescriptifEtProgramme', self::ATTRIBUT_LIBELLE => 'Descriptif et programme', self::ATTRIBUT_ACTION => 'descriptif-et-programme', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-desc-et-prog' ), self::NUMBER_ORGANISATION => array( self::ATTRIBUT_NAME => 'Organisation', self::ATTRIBUT_LIBELLE => 'Organisation', self::ATTRIBUT_ACTION => 'organisation', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-organisation' ), self::NUMBER_PRE_REQUIS => array( self::ATTRIBUT_NAME => 'PreRequis', self::ATTRIBUT_LIBELLE => 'Pré-requis', self::ATTRIBUT_ACTION => 'pre-requis', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-pre-requis' ), self::NUMBER_ACQUISITION => array( self::ATTRIBUT_NAME => 'Acquisition', self::ATTRIBUT_LIBELLE => 'Acquisition', self::ATTRIBUT_ACTION => 'acquisition', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-acquisition' ), self::NUMBER_GESTION_INT => array( self::ATTRIBUT_NAME => 'GestionInterne', self::ATTRIBUT_LIBELLE => 'Gestion interne', self::ATTRIBUT_ACTION => 'gestion-interne', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-gestion-interne' ), self::NUMBER_OCCURRENCES => array( self::ATTRIBUT_NAME => 'Occurrences', self::ATTRIBUT_LIBELLE => 'Occurrences', self::ATTRIBUT_ACTION => 'occurrences', self::ATTRIBUT_ROUTE_NAME => 'catalogue-ue-tab-occurrences' ) ); /** * @return array */ public static function getTabOnglets() { return self::$tabOnglets; }}
Output for 8.0.13
Parse error: syntax error, unexpected namespaced name "Catalogue\Constante" in /in/WmrAI on line 1
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.33
Parse error: syntax error, unexpected 'Catalogue' (T_STRING) in /in/WmrAI on line 1
Process exited with code 255.

preferences:
139.24 ms | 401 KiB | 172 Q