3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = microtime(true); $j = 0; for ($i = 0; $i < 10000; $i++) { $j+= $i; } echo sprintf('%0.4f', microtime(true) - $s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 7
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 7
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/PRV6C
function name:  (null)
number of ops:  21
compiled vars:  !0 = $s, !1 = $j, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        ASSIGN                                                   !1, 0
    4     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->9
    5     7    >   ASSIGN_OP                                     1          !1, !2
    4     8        PRE_INC                                                  !2
          9    >   IS_SMALLER                                               !2, 10000
         10      > JMPNZ                                                    ~9, ->7
    8    11    >   INIT_FCALL                                               'sprintf'
         12        SEND_VAL                                                 '%250.4f'
         13        INIT_FCALL                                               'microtime'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $10     
         16        SUB                                              ~11     $10, !0
         17        SEND_VAL                                                 ~11
         18        DO_ICALL                                         $12     
         19        ECHO                                                     $12
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.53 ms | 1395 KiB | 17 Q