3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); usleep(1000000); $end = microtime(true) - $start; printf("Page was rendered in %f seconds".PHP_EOL, $end); printf("Page was rendered in %f milliseconds".PHP_EOL, $end*1000); printf("Page was rendered in %f microseconds".PHP_EOL, ($end*1000)*1000);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kHmA3
function name:  (null)
number of ops:  28
compiled vars:  !0 = $start, !1 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'usleep'
          5        SEND_VAL                                                 1000000
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'microtime'
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $5      
         10        SUB                                              ~6      $5, !0
         11        ASSIGN                                                   !1, ~6
    8    12        INIT_FCALL                                               'printf'
         13        SEND_VAL                                                 'Page+was+rendered+in+%25f+seconds%0A'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
    9    16        INIT_FCALL                                               'printf'
         17        SEND_VAL                                                 'Page+was+rendered+in+%25f+milliseconds%0A'
         18        MUL                                              ~9      !1, 1000
         19        SEND_VAL                                                 ~9
         20        DO_ICALL                                                 
   10    21        INIT_FCALL                                               'printf'
         22        SEND_VAL                                                 'Page+was+rendered+in+%25f+microseconds%0A'
         23        MUL                                              ~11     !1, 1000
         24        MUL                                              ~12     ~11, 1000
         25        SEND_VAL                                                 ~12
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.61 ms | 1007 KiB | 16 Q