3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function(){ sleep(2); echo time()-$_REQUEST["REQUEST_TIME"]; }); set_time_limit(1); sleep(2); echo 123;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RYrpT
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FRYrpT%3A2%240'
    5     2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    6     4        INIT_FCALL                                               'set_time_limit'
          5        SEND_VAL                                                 1
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'sleep'
          8        SEND_VAL                                                 2
          9        DO_ICALL                                                 
    8    10        ECHO                                                     123
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FRYrpT%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RYrpT
function name:  {closure}
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'sleep'
          1        SEND_VAL                                                 2
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'time'
          4        DO_ICALL                                         $1      
          5        FETCH_R                      global              ~2      '_REQUEST'
          6        FETCH_DIM_R                                      ~3      ~2, 'REQUEST_TIME'
          7        SUB                                              ~4      $1, ~3
          8        ECHO                                                     ~4
    5     9      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FRYrpT%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.89 ms | 1395 KiB | 21 Q