3v4l.org

run code in 300+ PHP versions simultaneously
<?php function log_error( $type, $message, $file, $line ) { if ( $type === E_DEPRECATED ) { return true; } $error_reporting = error_reporting(); echo $error_reporting . ' - ' . ( $error_reporting & $type ) . PHP_EOL; return true; } set_error_handler('log_error'); //error_reporting( E_ALL ); error_reporting( E_ERROR ); trigger_error( 'A', E_USER_ERROR ); @trigger_error( 'A', E_USER_ERROR );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0fIc8
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'log_error'
          2        DO_ICALL                                                 
   14     3        INIT_FCALL                                               'error_reporting'
          4        SEND_VAL                                                 1
          5        DO_ICALL                                                 
   16     6        INIT_FCALL                                               'trigger_error'
          7        SEND_VAL                                                 'A'
          8        SEND_VAL                                                 256
          9        DO_ICALL                                                 
   17    10        BEGIN_SILENCE                                    ~3      
         11        INIT_FCALL                                               'trigger_error'
         12        SEND_VAL                                                 'A'
         13        SEND_VAL                                                 256
         14        DO_ICALL                                                 
         15        END_SILENCE                                              ~3
         16      > RETURN                                                   1

Function log_error:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0fIc8
function name:  log_error
number of ops:  17
compiled vars:  !0 = $type, !1 = $message, !2 = $file, !3 = $line, !4 = $error_reporting
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    4     4        IS_IDENTICAL                                             !0, 8192
          5      > JMPZ                                                     ~5, ->7
    5     6    > > RETURN                                                   <true>
    7     7    >   INIT_FCALL                                               'error_reporting'
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !4, $6
    8    10        CONCAT                                           ~8      !4, '+-+'
         11        BW_AND                                           ~9      !4, !0
         12        CONCAT                                           ~10     ~8, ~9
         13        CONCAT                                           ~11     ~10, '%0A'
         14        ECHO                                                     ~11
    9    15      > RETURN                                                   <true>
   10    16*     > RETURN                                                   null

End of function log_error

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.26 ms | 1005 KiB | 16 Q