3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handler($errno, $errstr) { var_dump($errno); } set_error_handler('handler'); function test($string) { $string = 'bar'; } $a = 'foo'; eval('test(&$a);');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8VtO7
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'handler'
          2        DO_ICALL                                                 
   10     3        ASSIGN                                                   !0, 'foo'
   11     4        INCLUDE_OR_EVAL                                          'test%28%26%24a%29%3B', EVAL
          5      > RETURN                                                   1

Function handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8VtO7
function name:  handler
number of ops:  6
compiled vars:  !0 = $errno, !1 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    4     5      > RETURN                                                   null

End of function handler

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8VtO7
function name:  test
number of ops:  3
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN                                                   !0, 'bar'
    9     2      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.26 ms | 1395 KiB | 17 Q