3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*E_ERROR E_PARSE E_CORE_ERROR E_CORE_WARNING E_COMPILE_ERROR E_COMPILE_WARNING E_STRICT*/ error_reporting(E_NOTICE); echo error_reporting(); function exception_error_handler($errno, $errstr, $errfile, $errline, $errcontext) { echo 'as'; /* if (error_reporting() == 0) { return; } //if (error_reporting() & $severity) { throw new ErrorException($message, 0, $severity, $filename, $lineno); //} */ // will be caught by FunkyExceptionHandler if not handled throw new ErrorException($errstr, 0, $errno, $errfile, $errline, $errcontext); return false; } //set_error_handler("exception_error_handler", error_reporting()); //Parse error: syntax error, unexpected '$a' //Fatal error: Class 'shopFunctionsF' not found //Notice: Use of undefined constant shopFunctionsF shopFunctionsF;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EAMpl
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 8
          2        DO_ICALL                                                 
   12     3        INIT_FCALL                                               'error_reporting'
          4        DO_ICALL                                         $1      
          5        ECHO                                                     $1
   41     6        FETCH_CONSTANT                                   ~2      'shopFunctionsF'
          7        FREE                                                     ~2
          8      > RETURN                                                   1

Function exception_error_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/EAMpl
function name:  exception_error_handler
number of ops:  17
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline, !4 = $errcontext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
   18     5        ECHO                                                     'as'
   33     6        NEW                                              $5      'ErrorException'
          7        SEND_VAR_EX                                              !1
          8        SEND_VAL_EX                                              0
          9        SEND_VAR_EX                                              !0
         10        SEND_VAR_EX                                              !2
         11        SEND_VAR_EX                                              !3
         12        SEND_VAR_EX                                              !4
         13        DO_FCALL                                      0          
         14      > THROW                                         0          $5
   34    15*       RETURN                                                   <false>
   35    16*     > RETURN                                                   null

End of function exception_error_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.69 ms | 1395 KiB | 15 Q