3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); for($i = 0; $i < 10000000; $i++) { $start+=1; $start-=1; } $end = microtime(true); echo 'Total:' . ($start - $end);
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 = 6
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
Branch analysis from position: 6
filename:       /in/tpeCm
function name:  (null)
number of ops:  19
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                                                 <true>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->9
          6    >   ASSIGN_OP                                     1          !0, 1
          7        ASSIGN_OP                                     2          !0, 1
          8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 10000000
         10      > JMPNZ                                                    ~9, ->6
    6    11    >   INIT_FCALL                                               'microtime'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !2, $10
    9    15        SUB                                              ~12     !0, !2
         16        CONCAT                                           ~13     'Total%3A', ~12
         17        ECHO                                                     ~13
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.84 ms | 1395 KiB | 15 Q