3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** PAGE DE TEST POUR MONITORING DES SERVEURS **/ /* NE PAS SUPPRIMER */ $MONITORING_MAINTENANCE = 'MAINTENANCE'; $MONITORING_OK = 'REPONSE_CORRECTE'; $MONITORING_ERROR = 'REPONSE REPONSE_INCORRECTE'; define('WP_USE_THEMES', false); define('SHORTINIT', true); define('WP_DEBUG', true); function lemoniteur_monitoring_failed($content) { global $MONITORING_ERROR; return $MONITORING_ERROR; } try { ob_start('lemoniteur_monitoring_failed'); /** Loads the WordPress Environment and Template * Fails on : * - DB connection unavailable * - DB wrong credentials */ // require_once(dirname(__FILE__) . '/wp-load.php'); echo $MONITORING_OK; } catch(Exception $e) { echo $MONITORING_ERROR; }
based on 31nYQ
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
REPONSE REPONSE_INCORRECTE
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/CK9YS on line 18
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '{' in /in/CK9YS on line 18
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/CK9YS on line 18
Process exited with code 255.