3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'a'; register_shutdown_function('sayHi'); //die(); echo 'b'; register_shutdown_function(function(){ echo 'd'; }); function sayHi() { echo 'c'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eh2LN
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'a'
    5     1        INIT_FCALL                                               'register_shutdown_function'
          2        SEND_VAL                                                 'sayHi'
          3        DO_ICALL                                                 
    8     4        ECHO                                                     'b'
   10     5        INIT_FCALL                                               'register_shutdown_function'
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Feh2LN%3A10%240'
   12     7        SEND_VAL                                                 ~1
          8        DO_ICALL                                                 
   16     9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Feh2LN%3A10%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eh2LN
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'd'
   12     1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Feh2LN%3A10%240

Function sayhi:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eh2LN
function name:  sayHi
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                     'c'
   16     1      > RETURN                                                   null

End of function sayhi

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.5 ms | 1395 KiB | 15 Q