3v4l.org

run code in 300+ PHP versions simultaneously
<?php function error_handler_first($no, $msg){ echo __FUNCTION__ . "\n"; restore_error_handler(); } function error_handler_second($no, $msg){ echo __FUNCTION__ . "\n"; restore_error_handler(); } set_error_handler("error_handler_first"); set_error_handler("error_handler_second"); trigger_error("error1"); trigger_error("error2"); trigger_error("error3"); trigger_error("error4");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q6gB4
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'error_handler_first'
          2        DO_ICALL                                                 
   14     3        INIT_FCALL                                               'set_error_handler'
          4        SEND_VAL                                                 'error_handler_second'
          5        DO_ICALL                                                 
   15     6        INIT_FCALL                                               'trigger_error'
          7        SEND_VAL                                                 'error1'
          8        DO_ICALL                                                 
   16     9        INIT_FCALL                                               'trigger_error'
         10        SEND_VAL                                                 'error2'
         11        DO_ICALL                                                 
   17    12        INIT_FCALL                                               'trigger_error'
         13        SEND_VAL                                                 'error3'
         14        DO_ICALL                                                 
   18    15        INIT_FCALL                                               'trigger_error'
         16        SEND_VAL                                                 'error4'
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Function error_handler_first:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q6gB4
function name:  error_handler_first
number of ops:  6
compiled vars:  !0 = $no, !1 = $msg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ECHO                                                     'error_handler_first%0A'
    5     3        INIT_FCALL                                               'restore_error_handler'
          4        DO_ICALL                                                 
    6     5      > RETURN                                                   null

End of function error_handler_first

Function error_handler_second:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q6gB4
function name:  error_handler_second
number of ops:  6
compiled vars:  !0 = $no, !1 = $msg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        ECHO                                                     'error_handler_second%0A'
   10     3        INIT_FCALL                                               'restore_error_handler'
          4        DO_ICALL                                                 
   11     5      > RETURN                                                   null

End of function error_handler_second

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.57 ms | 1388 KiB | 19 Q