3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handleError($severity, $errstr, $errfile, $errline) { \error_clear_last(); if (!(\error_reporting() & $severity)) { return false; // Silenced } var_dump('ERROR!'); } set_error_handler('handleError'); // actual script @\gzuncompress('blub'); $error = \error_get_last(); var_dump($error);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/voRep
function name:  (null)
number of ops:  15
compiled vars:  !0 = $error
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'handleError'
          2        DO_ICALL                                                 
   17     3        BEGIN_SILENCE                                    ~2      
          4        INIT_FCALL                                               'gzuncompress'
          5        SEND_VAL                                                 'blub'
          6        DO_ICALL                                                 
          7        END_SILENCE                                              ~2
   19     8        INIT_FCALL                                               'error_get_last'
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
   20    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function handleerror:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/voRep
function name:  handleError
number of ops:  16
compiled vars:  !0 = $severity, !1 = $errstr, !2 = $errfile, !3 = $errline
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    5     4        INIT_FCALL                                               'error_clear_last'
          5        DO_ICALL                                                 
    7     6        INIT_FCALL                                               'error_reporting'
          7        DO_ICALL                                         $5      
          8        BW_AND                                           ~6      !0, $5
          9        BOOL_NOT                                         ~7      ~6
         10      > JMPZ                                                     ~7, ->12
    8    11    > > RETURN                                                   <false>
   11    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAL                                                 'ERROR%21'
         14        DO_ICALL                                                 
   12    15      > RETURN                                                   null

End of function handleerror

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.4 ms | 1388 KiB | 25 Q