3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_time = microtime(true); function shutdown($start_time) { $time_diff = round(1000 * (microtime(true)-$start_time)); echo $time_diff . "ms<br/>"; } register_shutdown_function('shutdown', $start_time); register_shutdown_function('shutdown', $start_time); register_shutdown_function('shutdown', $start_time); register_shutdown_function('shutdown', $start_time); register_shutdown_function('shutdown', $start_time);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZGQ22
function name:  (null)
number of ops:  25
compiled vars:  !0 = $start_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
   12     4        INIT_FCALL                                               'register_shutdown_function'
          5        SEND_VAL                                                 'shutdown'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   13     8        INIT_FCALL                                               'register_shutdown_function'
          9        SEND_VAL                                                 'shutdown'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
   14    12        INIT_FCALL                                               'register_shutdown_function'
         13        SEND_VAL                                                 'shutdown'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
   15    16        INIT_FCALL                                               'register_shutdown_function'
         17        SEND_VAL                                                 'shutdown'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
   16    20        INIT_FCALL                                               'register_shutdown_function'
         21        SEND_VAL                                                 'shutdown'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Function shutdown:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZGQ22
function name:  shutdown
number of ops:  13
compiled vars:  !0 = $start_time, !1 = $time_diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'round'
          2        INIT_FCALL                                               'microtime'
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $2      
          5        SUB                                              ~3      $2, !0
          6        MUL                                              ~4      ~3, 1000
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    9    10        CONCAT                                           ~7      !1, 'ms%3Cbr%2F%3E'
         11        ECHO                                                     ~7
   10    12      > RETURN                                                   null

End of function shutdown

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.72 ms | 1396 KiB | 19 Q