3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($startTimeMs = currentTimeMs(), $i = 0; $i < 10000; $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 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
Branch analysis from position: 5
filename:       /in/2KVrH
function name:  (null)
number of ops:  14
compiled vars:  !0 = $startTimeMs, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'currentTimeMs'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                                   !0, $2
          3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->11
    4     5    >   INIT_FCALL_BY_NAME                                       'currentTimeMs'
          6        DO_FCALL                                      0  $5      
          7        SUB                                              ~6      $5, !0
          8        CONCAT                                           ~7      ~6, '+'
          9        ECHO                                                     ~7
    2    10        PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 10000
         12      > JMPNZ                                                    ~9, ->5
    9    13    > > RETURN                                                   1

Function currenttimems:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2KVrH
function name:  currentTimeMs
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     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
    9     8*     > RETURN                                                   null

End of function currenttimems

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.89 ms | 1400 KiB | 17 Q