3v4l.org

run code in 300+ PHP versions simultaneously
<?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; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 20
Branch analysis from position: 20
2 jumps found. (Code = 107) Position 1 = 21, Position 2 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CK9YS
function name:  (null)
number of ops:  23
compiled vars:  !0 = $MONITORING_MAINTENANCE, !1 = $MONITORING_OK, !2 = $MONITORING_ERROR, !3 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'MAINTENANCE'
    6     1        ASSIGN                                                   !1, 'REPONSE_CORRECTE'
    7     2        ASSIGN                                                   !2, '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                                                 
   19    15        INIT_FCALL                                               'ob_start'
         16        SEND_VAL                                                 'lemoniteur_monitoring_failed'
         17        DO_ICALL                                                 
   28    18        ECHO                                                     !1
         19      > JMP                                                      ->22
   29    20  E > > CATCH                                       last         'Exception'
   30    21    >   ECHO                                                     !2
   31    22    > > RETURN                                                   1

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

End of function lemoniteur_monitoring_failed

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.25 ms | 1396 KiB | 17 Q