3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); $end = mircotime(true); $assign = $end - $start; $start = microtime(true); mircotime(true); mircotime(true); $end = mircotime(true); echo "Clean call: " . $assign . "\n"; echo "3 (+ assign) microtime calls: " . ($end-$start) . "\n"; echo "2 calls cleaned: " . (($end-$start) - $assign);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cWp57
function name:  (null)
number of ops:  36
compiled vars:  !0 = $start, !1 = $end, !2 = $assign
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL_BY_NAME                                       'mircotime'
          5        SEND_VAL_EX                                              <true>
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
    5     8        SUB                                              ~7      !1, !0
          9        ASSIGN                                                   !2, ~7
    6    10        INIT_FCALL                                               'microtime'
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !0, $9
    7    14        INIT_FCALL_BY_NAME                                       'mircotime'
         15        SEND_VAL_EX                                              <true>
         16        DO_FCALL                                      0          
    8    17        INIT_FCALL_BY_NAME                                       'mircotime'
         18        SEND_VAL_EX                                              <true>
         19        DO_FCALL                                      0          
    9    20        INIT_FCALL_BY_NAME                                       'mircotime'
         21        SEND_VAL_EX                                              <true>
         22        DO_FCALL                                      0  $13     
         23        ASSIGN                                                   !1, $13
   10    24        CONCAT                                           ~15     'Clean+call%3A+', !2
         25        CONCAT                                           ~16     ~15, '%0A'
         26        ECHO                                                     ~16
   11    27        SUB                                              ~17     !1, !0
         28        CONCAT                                           ~18     '3+%28%2B+assign%29+microtime+calls%3A+', ~17
         29        CONCAT                                           ~19     ~18, '%0A'
         30        ECHO                                                     ~19
   12    31        SUB                                              ~20     !1, !0
         32        SUB                                              ~21     ~20, !2
         33        CONCAT                                           ~22     '2+calls+cleaned%3A+', ~21
         34        ECHO                                                     ~22
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.34 ms | 1388 KiB | 15 Q