3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = microtime(1); for ($i=1000; $i--;) uniqid(); $b = microtime(1); echo $b-$a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 6
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 6
Branch analysis from position: 10
Branch analysis from position: 6
filename:       /in/SIXC8
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $i, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 1
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        ASSIGN                                                   !1, 1000
          5      > JMP                                                      ->8
          6    >   INIT_FCALL                                               'uniqid'
          7        DO_ICALL                                                 
          8    >   POST_DEC                                         ~7      !1
          9      > JMPNZ                                                    ~7, ->6
    4    10    >   INIT_FCALL                                               'microtime'
         11        SEND_VAL                                                 1
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
    5    14        SUB                                              ~10     !2, !0
         15        ECHO                                                     ~10
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.2 ms | 1395 KiB | 17 Q