3v4l.org

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

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

End of function a

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

End of function b

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
133.6 ms | 1401 KiB | 19 Q