3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $a = 5; $start = microtime(true); for ($i = 0; $i < 10000; $i++) { if ($a) { } } $stop = microtime(true); $diff = $stop - $start; var_dump($diff); $a = 5; $start = microtime(true); for ($j = 0; $j < 10000; $j++) { if ($a != 0) { } } $stop = microtime(true); $diff = $stop - $start; var_dump($diff);
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 = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 27
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 27
Branch analysis from position: 32
Branch analysis from position: 27
Branch analysis from position: 29
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 7
Branch analysis from position: 11
Branch analysis from position: 7
Branch analysis from position: 8
filename:       /in/SikrH
function name:  (null)
number of ops:  42
compiled vars:  !0 = $a, !1 = $start, !2 = $i, !3 = $stop, !4 = $diff, !5 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 5
    6     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $7      
          4        ASSIGN                                                   !1, $7
    8     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->9
   10     7    > > JMPZ                                                     !0, ->8
    8     8    >   PRE_INC                                                  !2
          9    >   IS_SMALLER                                               !2, 10000
         10      > JMPNZ                                                    ~11, ->7
   17    11    >   INIT_FCALL                                               'microtime'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $12     
         14        ASSIGN                                                   !3, $12
   19    15        SUB                                              ~14     !3, !1
         16        ASSIGN                                                   !4, ~14
   21    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                                 
   23    20        ASSIGN                                                   !0, 5
   25    21        INIT_FCALL                                               'microtime'
         22        SEND_VAL                                                 <true>
         23        DO_ICALL                                         $18     
         24        ASSIGN                                                   !1, $18
   27    25        ASSIGN                                                   !5, 0
         26      > JMP                                                      ->30
   29    27    >   IS_NOT_EQUAL                                             !0, 0
         28      > JMPZ                                                     ~21, ->29
   27    29    >   PRE_INC                                                  !5
         30    >   IS_SMALLER                                               !5, 10000
         31      > JMPNZ                                                    ~23, ->27
   36    32    >   INIT_FCALL                                               'microtime'
         33        SEND_VAL                                                 <true>
         34        DO_ICALL                                         $24     
         35        ASSIGN                                                   !3, $24
   38    36        SUB                                              ~26     !3, !1
         37        ASSIGN                                                   !4, ~26
   40    38        INIT_FCALL                                               'var_dump'
         39        SEND_VAR                                                 !4
         40        DO_ICALL                                                 
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.96 ms | 1392 KiB | 17 Q