3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_start = microtime(true); $time_end = microtime(true); $time = $time_end - $time_start; $array = explode('.', $time); $msec = str_pad(substr($array[1], 0, 3) , 3, "0"); echo $time; echo ':'; echo $msec;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9S7lG
function name:  (null)
number of ops:  31
compiled vars:  !0 = $time_start, !1 = $time_end, !2 = $time, !3 = $array, !4 = $msec
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    4     4        INIT_FCALL                                               'microtime'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !1, $7
    5     8        SUB                                              ~9      !1, !0
          9        ASSIGN                                                   !2, ~9
    7    10        INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 '.'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !3, $11
    8    15        INIT_FCALL                                               'str_pad'
         16        INIT_FCALL                                               'substr'
         17        FETCH_DIM_R                                      ~13     !3, 1
         18        SEND_VAL                                                 ~13
         19        SEND_VAL                                                 0
         20        SEND_VAL                                                 3
         21        DO_ICALL                                         $14     
         22        SEND_VAR                                                 $14
         23        SEND_VAL                                                 3
         24        SEND_VAL                                                 '0'
         25        DO_ICALL                                         $15     
         26        ASSIGN                                                   !4, $15
   10    27        ECHO                                                     !2
   11    28        ECHO                                                     '%EF%BC%9A'
   12    29        ECHO                                                     !4
   13    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.02 ms | 1387 KiB | 21 Q