3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "test!"; $b = "test B!"; function errhnd($a, $b, $errno, $errstr, $errfile, $errline) { # need $a and $b vars here! echo $a; echo "<br />"; echo $b; echo "<br />"; echo $errno; } set_error_handler($a, $b, 'errhnd');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uUMhh
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test%21'
    4     1        ASSIGN                                                   !1, 'test+B%21'
   15     2        INIT_FCALL                                               'set_error_handler'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 'errhnd'
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function errhnd:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uUMhh
function name:  errhnd
number of ops:  12
compiled vars:  !0 = $a, !1 = $b, !2 = $errno, !3 = $errstr, !4 = $errfile, !5 = $errline
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
          5        RECV                                             !5      
    8     6        ECHO                                                     !0
    9     7        ECHO                                                     '%3Cbr+%2F%3E'
   10     8        ECHO                                                     !1
   11     9        ECHO                                                     '%3Cbr+%2F%3E'
   12    10        ECHO                                                     !2
   13    11      > RETURN                                                   null

End of function errhnd

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.28 ms | 1386 KiB | 15 Q