3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(1); for($i=0; $i<10000; $i++){ } $end = microtime(1); echo $end-$start;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 6
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 6
Branch analysis from position: 9
Branch analysis from position: 6
filename:       /in/pc2N0
function name:  (null)
number of ops:  16
compiled vars:  !0 = $start, !1 = $i, !2 = $end
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, 0
          5      > JMP                                                      ->7
          6    >   PRE_INC                                                  !1
          7    >   IS_SMALLER                                               !1, 10000
          8      > JMPNZ                                                    ~7, ->6
    6     9    >   INIT_FCALL                                               'microtime'
         10        SEND_VAL                                                 1
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
    7    13        SUB                                              ~10     !2, !0
         14        ECHO                                                     ~10
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.76 ms | 1394 KiB | 15 Q