3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function() { echo "A\n"; f(1); echo "B\n"; }); eval('function f($x): void { return $x; }');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XMg3k
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        DECLARE_LAMBDA_FUNCTION                          ~0      [0]
    7     2        SEND_VAL                                                 ~0
    3     3        DO_ICALL                                                 
    8     4        INCLUDE_OR_EVAL                                          'function+f%28%24x%29%3A+void+%7B+return+%24x%3B+%7D', EVAL
          5      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XMg3k
function name:  {closure}
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'A%0A'
    5     1        INIT_FCALL_BY_NAME                                       'f'
          2        SEND_VAL_EX                                              1
          3        DO_FCALL                                      0          
    6     4        ECHO                                                     'B%0A'
    7     5      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.13 ms | 1009 KiB | 14 Q