3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTime = $this->microtime_float(); for ($i = 0; $i < $runCount; $i++) { if ($i == -1) { } elseif ($i == -2) { } else if ($i == -3) { } } $time = $this->microtime_float() - $startTime; echo str_pad("If/Else", 27) . " : " . number_format($time, 3) . " sec.\n"; return $time;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
Branch analysis from position: 6
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 14
Branch analysis from position: 14
Branch analysis from position: 14
filename:       /in/LnR66
function name:  (null)
number of ops:  36
compiled vars:  !0 = $startTime, !1 = $i, !2 = $runCount, !3 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_THIS                                       $4      
          1        INIT_METHOD_CALL                                         $4, 'microtime_float'
          2        DO_FCALL                                      0  $5      
          3        ASSIGN                                                   !0, $5
    4     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->15
    5     6    >   IS_EQUAL                                                 !1, -1
          7      > JMPZ                                                     ~8, ->9
          8    > > JMP                                                      ->14
    7     9    >   IS_EQUAL                                                 !1, -2
         10      > JMPZ                                                     ~9, ->12
         11    > > JMP                                                      ->14
    9    12    >   IS_EQUAL                                                 !1, -3
         13      > JMPZ                                                     ~10, ->14
    4    14    >   PRE_INC                                                  !1
         15    >   IS_SMALLER                                               !1, !2
         16      > JMPNZ                                                    ~12, ->6
   13    17    >   FETCH_THIS                                       $13     
         18        INIT_METHOD_CALL                                         $13, 'microtime_float'
         19        DO_FCALL                                      0  $14     
         20        SUB                                              ~15     $14, !0
         21        ASSIGN                                                   !3, ~15
   14    22        INIT_FCALL                                               'str_pad'
         23        SEND_VAL                                                 'If%2FElse'
         24        SEND_VAL                                                 27
         25        DO_ICALL                                         $17     
         26        CONCAT                                           ~18     $17, '+%3A+'
         27        INIT_FCALL                                               'number_format'
         28        SEND_VAR                                                 !3
         29        SEND_VAL                                                 3
         30        DO_ICALL                                         $19     
         31        CONCAT                                           ~20     ~18, $19
         32        CONCAT                                           ~21     ~20, '+sec.%0A'
         33        ECHO                                                     ~21
   15    34      > RETURN                                                   !3
   16    35*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.62 ms | 1021 KiB | 15 Q