3v4l.org

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

Function log_error:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MmGIp
function name:  log_error
number of ops:  13
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        INIT_FCALL                                               'error_reporting'
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !4, $5
    5     7        CONCAT                                           ~7      !4, '+-+'
          8        BW_AND                                           ~8      !4, !0
          9        CONCAT                                           ~9      ~7, ~8
         10        CONCAT                                           ~10     ~9, '%0A'
         11        ECHO                                                     ~10
    6    12      > RETURN                                                   null

End of function log_error

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.65 ms | 1005 KiB | 16 Q