3v4l.org

run code in 300+ PHP versions simultaneously
<?php function t35_handler_MOO($no, $msg){ echo __LINE__.__METHOD__."\n"; restore_error_handler(); echo __LINE__.__METHOD__."\n"; } function t35_handler($no, $msg){ echo __LINE__.__METHOD__."\n"; restore_error_handler(); echo __LINE__.__METHOD__."\n"; } function t35(){ set_error_handler("t35_handler_MOO"); echo "old handler=".set_error_handler("t35_handler")."\n"; trigger_error("error1"); //echo "old handler=".set_error_handler("t35_handler")."\n"; trigger_error("error2"); } t35(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J8npY
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_FCALL                                               't35'
          1        DO_FCALL                                      0          
   26     2      > RETURN                                                   1

Function t35_handler_moo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J8npY
function name:  t35_handler_MOO
number of ops:  7
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                                                     '4t35_handler_MOO%0A'
    5     3        INIT_FCALL                                               'restore_error_handler'
          4        DO_ICALL                                                 
    6     5        ECHO                                                     '6t35_handler_MOO%0A'
    7     6      > RETURN                                                   null

End of function t35_handler_moo

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

End of function t35_handler

Function t35:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J8npY
function name:  t35
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 't35_handler_MOO'
          2        DO_ICALL                                                 
   17     3        INIT_FCALL                                               'set_error_handler'
          4        SEND_VAL                                                 't35_handler'
          5        DO_ICALL                                         $1      
          6        CONCAT                                           ~2      'old+handler%3D', $1
          7        CONCAT                                           ~3      ~2, '%0A'
          8        ECHO                                                     ~3
   18     9        INIT_FCALL                                               'trigger_error'
         10        SEND_VAL                                                 'error1'
         11        DO_ICALL                                                 
   20    12        INIT_FCALL                                               'trigger_error'
         13        SEND_VAL                                                 'error2'
         14        DO_ICALL                                                 
   21    15      > RETURN                                                   null

End of function t35

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.56 ms | 1394 KiB | 20 Q