3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "yes"; register_shutdown_function(function() { sleep("2"); echo "done"; }); die();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/L03lJ
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'yes'
    5     1        INIT_FCALL                                               'register_shutdown_function'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FL03lJ%3A5%240'
    8     3        SEND_VAL                                                 ~0
          4        DO_ICALL                                                 
   10     5      > EXIT                                                     
          6*     > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FL03lJ%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L03lJ
function name:  {closure}
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'sleep'
          1        SEND_VAL                                                 '2'
          2        DO_ICALL                                                 
    7     3        ECHO                                                     'done'
    8     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FL03lJ%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.66 ms | 1394 KiB | 17 Q