3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.52 ms | 1399 KiB | 17 Q