3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_error_handler($errno, $errstr, $errfile, $errline) { var_dump($errno, $errstr, $errfile, $errline); } set_error_handler('my_error_handler'); trigger_error('test error');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7XEcu
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'my_error_handler'
          2        DO_ICALL                                                 
    9     3        INIT_FCALL                                               'trigger_error'
          4        SEND_VAL                                                 'test+error'
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function my_error_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7XEcu
function name:  my_error_handler
number of ops:  11
compiled vars:  !0 = $errno, !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      
    4     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        SEND_VAR                                                 !3
          9        DO_ICALL                                                 
    5    10      > RETURN                                                   null

End of function my_error_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.09 ms | 1001 KiB | 16 Q