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($time); $time_end = microtime_float(); $time = $time_end - $time_start; echo "Did nothing in $time seconds\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ldHcB
function name:  (null)
number of ops:  16
compiled vars:  !0 = $time_start, !1 = $time, !2 = $time_end
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
   12     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
   15     6        INIT_FCALL                                               'microtime_float'
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !2, $6
   16     9        SUB                                              ~8      !2, !0
         10        ASSIGN                                                   !1, ~8
   18    11        ROPE_INIT                                     3  ~11     'Did+nothing+in+'
         12        ROPE_ADD                                      1  ~11     ~11, !1
         13        ROPE_END                                      2  ~10     ~11, '+seconds%0A'
         14        ECHO                                                     ~10
         15      > RETURN                                                   1

Function microtime_float:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ldHcB
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:
176.03 ms | 1390 KiB | 21 Q