3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! for ($startTimeMs = currentTimeMs(), $i = 0; $i < 100; $i++) { //usleep(1); echo (currentTimeMs() - $startTimeMs) . ' '; } function currentTimeMs() { return round(microtime(true) * 1000000); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 5
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 5
Branch analysis from position: 14
Branch analysis from position: 5
filename:       /in/MvouI
function name:  (null)
number of ops:  15
compiled vars:  !0 = $startTimeMs, !1 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL_BY_NAME                                       'currentTimeMs'
         1        DO_FCALL                                      0  $2      
         2        QM_ASSIGN                                                !0
         3        QM_ASSIGN                                                !1
         4      > JMP                                                      ->12
   5     5    >   INIT_FCALL_BY_NAME                                       'currentTimeMs'
         6        DO_FCALL                                      0  $5      
         7        SUB                                              ~6      $5, !0
         8        CONCAT                                           ~7      ~6, '+'
         9        ASSIGN_OBJ                                               ~7
   3    10        POST_INC                                         ~8      !1
        11        FREE                                                     ~8
        12    >   IS_SMALLER_OR_EQUAL                              ~9      !1, 100
        13      > JMPNZ                                                    ~9, ->5
  10    14    > > RETURN                                                   1

Function currenttimems:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MvouI
function name:  currentTimeMs
number of ops:  9
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   9     0  E >   INIT_FCALL                                               'round'
         1        INIT_FCALL                                               'microtime'
         2        SEND_VAL                                                 <true>
         3        DO_ICALL                                         $0      
         4        MUL                                              ~1      $0, 1000000
         5        SEND_VAL                                                 ~1
         6        DO_ICALL                                         $2      
         7      > RETURN                                                   $2
  10     8*     > RETURN                                                   null

End of function currenttimems

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
15.07 ms | 412 KiB | 7 Q