3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** PAGE DE TEST POUR MONITORING DES SERVEURS **/ /* NE PAS SUPPRIMER */ const MONITORING_MAINTENANCE = 'MAINTENANCE'; const MONITORING_OK = 'REPONSE_CORRECTE'; const MONITORING_ERROR = 'REPONSE REPONSE_INCORRECTE'; define('WP_USE_THEMES', false); define('SHORTINIT', true); define('WP_DEBUG', true); function lemoniteur_monitoring_failed($content) { 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; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 21
Branch analysis from position: 21
2 jumps found. (Code = 107) Position 1 = 22, Position 2 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3S5Mp
function name:  (null)
number of ops:  25
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CONST                                            'MONITORING_MAINTENANCE', 'MAINTENANCE'
    6     1        DECLARE_CONST                                            'MONITORING_OK', 'REPONSE_CORRECTE'
    7     2        DECLARE_CONST                                            'MONITORING_ERROR', 'REPONSE+REPONSE_INCORRECTE'
    9     3        INIT_FCALL                                               'define'
          4        SEND_VAL                                                 'WP_USE_THEMES'
          5        SEND_VAL                                                 <false>
          6        DO_ICALL                                                 
   10     7        INIT_FCALL                                               'define'
          8        SEND_VAL                                                 'SHORTINIT'
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                                 
   11    11        INIT_FCALL                                               'define'
         12        SEND_VAL                                                 'WP_DEBUG'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                                 
   18    15        INIT_FCALL                                               'ob_start'
         16        SEND_VAL                                                 'lemoniteur_monitoring_failed'
         17        DO_ICALL                                                 
   27    18        FETCH_CONSTANT                                   ~5      'MONITORING_OK'
         19        ECHO                                                     ~5
         20      > JMP                                                      ->24
   28    21  E > > CATCH                                       last         'Exception'
   29    22    >   FETCH_CONSTANT                                   ~6      'MONITORING_ERROR'
         23        ECHO                                                     ~6
   30    24    > > RETURN                                                   1

Function lemoniteur_monitoring_failed:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3S5Mp
function name:  lemoniteur_monitoring_failed
number of ops:  4
compiled vars:  !0 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1        FETCH_CONSTANT                                   ~1      'MONITORING_ERROR'
          2      > RETURN                                                   ~1
   15     3*     > RETURN                                                   null

End of function lemoniteur_monitoring_failed

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.73 ms | 1401 KiB | 17 Q