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(function ($t, $m) { echo __FUNCTION__, $m, "\n"; }, E_USER_NOTICE); set_error_handler('b', E_USER_WARNING); 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/JdWWp
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FJdWWp%3A13%240'
   16     2        SEND_VAL                                                 ~0
          3        SEND_VAL                                                 1024
          4        DO_ICALL                                                 
   17     5        INIT_FCALL                                               'set_error_handler'
          6        SEND_VAL                                                 'b'
          7        SEND_VAL                                                 512
          8        DO_ICALL                                                 
   19     9        INIT_FCALL                                               'trigger_error'
         10        SEND_VAL                                                 'foo'
         11        DO_ICALL                                                 
   20    12        INIT_FCALL                                               'restore_error_handler'
         13        DO_ICALL                                                 
   21    14        INIT_FCALL                                               'trigger_error'
         15        SEND_VAL                                                 'bar'
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JdWWp
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/JdWWp
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

Function %00%7Bclosure%7D%2Fin%2FJdWWp%3A13%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JdWWp
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $t, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   15     2        ECHO                                                     '%7Bclosure%7D'
          3        ECHO                                                     !1
          4        ECHO                                                     '%0A'
   16     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FJdWWp%3A13%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.97 ms | 1400 KiB | 19 Q