3v4l.org

run code in 300+ PHP versions simultaneously
<?php function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $time_start = microtime_float(); var_dump( glob('/*') ); $time_end = microtime_float(); $time = round( ( $time_end - $time_start ) * 1000, 3 ); echo "time: $time ms\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qqrfd
function name:  (null)
number of ops:  24
compiled vars:  !0 = $time_start, !1 = $time_end, !2 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'microtime_float'
          1        DO_FCALL                                      0  $3      
          2        ASSIGN                                                   !0, $3
   13     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'glob'
          5        SEND_VAL                                                 '%2F%2A'
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                                 
   17     9        INIT_FCALL                                               'microtime_float'
         10        DO_FCALL                                      0  $7      
         11        ASSIGN                                                   !1, $7
   18    12        INIT_FCALL                                               'round'
         13        SUB                                              ~9      !1, !0
         14        MUL                                              ~10     ~9, 1000
         15        SEND_VAL                                                 ~10
         16        SEND_VAL                                                 3
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !2, $11
   20    19        ROPE_INIT                                     3  ~14     'time%3A+'
         20        ROPE_ADD                                      1  ~14     ~14, !2
         21        ROPE_END                                      2  ~13     ~14, '+ms%0A'
         22        ECHO                                                     ~13
         23      > RETURN                                                   1

Function microtime_float:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qqrfd
function name:  microtime_float
number of ops:  16
compiled vars:  !0 = $usec, !1 = $sec
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '+'
          2        INIT_FCALL                                               'microtime'
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        DO_ICALL                                         $3      
          6        FETCH_LIST_R                                     $4      $3, 0
          7        ASSIGN                                                   !0, $4
          8        FETCH_LIST_R                                     $6      $3, 1
          9        ASSIGN                                                   !1, $6
         10        FREE                                                     $3
    6    11        CAST                                          5  ~8      !0
         12        CAST                                          5  ~9      !1
         13        ADD                                              ~10     ~8, ~9
         14      > RETURN                                                   ~10
    7    15*     > RETURN                                                   null

End of function microtime_float

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.65 ms | 1403 KiB | 25 Q