3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); for($i = 0; $i < 100; $i++) { if(2 === 0) {} else if(2 === 1) {} else {} } $end = microtime(true); echo "1: ".($end - $start)."\n"; unset($start, $end); $start = microtime(true); for($i = 0; $i < 100; $i++) { if(2 === 0) {} elseif(2 === 1) {} else {} } $end = microtime(true); echo "2: ".($end - $start); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 29
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 31
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 29
Branch analysis from position: 36
Branch analysis from position: 29
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 33
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 33
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
Branch analysis from position: 6
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 10
filename:       /in/R5cep
function name:  (null)
number of ops:  44
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                                                      ->11
    4     6    > > JMPZ                                                     <false>, ->8
          7    > > JMP                                                      ->10
          8    > > JMPZ                                                     <false>, ->10
          9    > > JMP                                                      ->10
    3    10    >   PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 100
         12      > JMPNZ                                                    ~7, ->6
    6    13    >   INIT_FCALL                                               'microtime'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !2, $8
    7    17        SUB                                              ~10     !2, !0
         18        CONCAT                                           ~11     '1%3A+', ~10
         19        CONCAT                                           ~12     ~11, '%0A'
         20        ECHO                                                     ~12
    8    21        UNSET_CV                                                 !0
         22        UNSET_CV                                                 !2
   10    23        INIT_FCALL                                               'microtime'
         24        SEND_VAL                                                 <true>
         25        DO_ICALL                                         $13     
         26        ASSIGN                                                   !0, $13
   11    27        ASSIGN                                                   !1, 0
         28      > JMP                                                      ->34
   12    29    > > JMPZ                                                     <false>, ->31
         30    > > JMP                                                      ->33
         31    > > JMPZ                                                     <false>, ->33
         32    > > JMP                                                      ->33
   11    33    >   PRE_INC                                                  !1
         34    >   IS_SMALLER                                               !1, 100
         35      > JMPNZ                                                    ~17, ->29
   14    36    >   INIT_FCALL                                               'microtime'
         37        SEND_VAL                                                 <true>
         38        DO_ICALL                                         $18     
         39        ASSIGN                                                   !2, $18
   15    40        SUB                                              ~20     !2, !0
         41        CONCAT                                           ~21     '2%3A+', ~20
         42        ECHO                                                     ~21
   16    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.82 ms | 1400 KiB | 15 Q