3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); for($i = 0; $i < 10000000; $i++) { } $end = microtime(true); echo 'Total:' . ($end - $start); echo "\n"; $start = microtime(true); $i = 0; while($i != 10000000) { $i++; } $end = microtime(true); echo 'Total:' . ($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 = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 23
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 23
Branch analysis from position: 26
Branch analysis from position: 23
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/NWjPn
function name:  (null)
number of ops:  34
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
    3     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->7
          6    >   PRE_INC                                                  !1
          7    >   IS_SMALLER                                               !1, 10000000
          8      > JMPNZ                                                    ~7, ->6
    4     9    >   INIT_FCALL                                               'microtime'
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
    5    13        SUB                                              ~10     !2, !0
         14        CONCAT                                           ~11     'Total%3A', ~10
         15        ECHO                                                     ~11
    7    16        ECHO                                                     '%0A'
    9    17        INIT_FCALL                                               'microtime'
         18        SEND_VAL                                                 <true>
         19        DO_ICALL                                         $12     
         20        ASSIGN                                                   !0, $12
   10    21        ASSIGN                                                   !1, 0
   11    22      > JMP                                                      ->24
         23    >   PRE_INC                                                  !1
         24    >   IS_NOT_EQUAL                                             !1, 10000000
         25      > JMPNZ                                                    ~16, ->23
   12    26    >   INIT_FCALL                                               'microtime'
         27        SEND_VAL                                                 <true>
         28        DO_ICALL                                         $17     
         29        ASSIGN                                                   !2, $17
   13    30        SUB                                              ~19     !2, !0
         31        CONCAT                                           ~20     'Total%3A', ~19
         32        ECHO                                                     ~20
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.63 ms | 1401 KiB | 15 Q