3v4l.org

run code in 500+ PHP versions simultaneously
<?php function error_handler($p_type, $p_error, $p_file, $p_line) { echo 'in handler: ', error_reporting(), PHP_EOL; } error_reporting(-1); echo error_reporting(), PHP_EOL; set_error_handler('error_handler'); date_default_timezone_set('');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aftRX
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     -1
          2        DO_ICALL                                                     
    9     3        INIT_FCALL                                                   'error_reporting'
          4        DO_ICALL                                             $1      
          5        ECHO                                                         $1
          6        ECHO                                                         '%0A'
   11     7        INIT_FCALL                                                   'set_error_handler'
          8        SEND_VAL                                                     'error_handler'
          9        DO_ICALL                                                     
   12    10        INIT_FCALL                                                   'date_default_timezone_set'
         11        SEND_VAL                                                     ''
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Function error_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aftRX
function name:  error_handler
number of ops:  10
compiled vars:  !0 = $p_type, !1 = $p_error, !2 = $p_file, !3 = $p_line
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        ECHO                                                         'in+handler%3A+'
          5        INIT_FCALL                                                   'error_reporting'
          6        DO_ICALL                                             $4      
          7        ECHO                                                         $4
          8        ECHO                                                         '%0A'
    6     9      > RETURN                                                       null

End of function error_handler

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
209.93 ms | 1891 KiB | 16 Q