3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 为避免污染全局命名空间,已对所有标识符加 `e` 前缀 /** * 运行模式 * * debug 调试模式, 会开启详细的日志记录和错误提示 * * default 默认模式, 会输出错误提示 * * production 生产模式, 不会执行任何额外操作, 最高效地执行代码 */ const eDebug = 2; const eDefault = 1; const eProduction = 0; const eRunMode = eDefault; // 默认关掉所有错误提示 error_reporting(0); // 如果是默认模式,打开致命错误和解析错误的报告 if(eRunMode >= eDefault) error_reporting(E_ERROR | E_PARSE); // 如果是调试模式,打开全部错误提示,并启用修改建议提示 if(eRunMode >= eDebug) error_reporting(E_ALL | E_STRICT);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 14
filename:       /in/fUtT2
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   DECLARE_CONST                                            'eDebug', 2
   13     1        DECLARE_CONST                                            'eDefault', 1
   14     2        DECLARE_CONST                                            'eProduction', 0
   16     3        DECLARE_CONST                                            'eRunMode', <const ast>
   19     4        INIT_FCALL                                               'error_reporting'
          5        SEND_VAL                                                 0
          6        DO_ICALL                                                 
   21     7        FETCH_CONSTANT                                   ~1      'eRunMode'
          8        FETCH_CONSTANT                                   ~2      'eDefault'
          9        IS_SMALLER_OR_EQUAL                                      ~2, ~1
         10      > JMPZ                                                     ~3, ->14
   22    11    >   INIT_FCALL                                               'error_reporting'
         12        SEND_VAL                                                 5
         13        DO_ICALL                                                 
   24    14    >   FETCH_CONSTANT                                   ~5      'eRunMode'
         15        FETCH_CONSTANT                                   ~6      'eDebug'
         16        IS_SMALLER_OR_EQUAL                                      ~6, ~5
         17      > JMPZ                                                     ~7, ->21
   25    18    >   INIT_FCALL                                               'error_reporting'
         19        SEND_VAL                                                 32767
         20        DO_ICALL                                                 
         21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.44 ms | 1395 KiB | 15 Q