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 < 1000; $i++) { if ($a) { } } $stop = microtime(true); $diff = $stop - $start; var_dump($diff); $start = microtime(true); for ($i = 0; $i < 1000; $i++) { 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 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 26
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 26
Branch analysis from position: 31
Branch analysis from position: 26
Branch analysis from position: 28
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/36FEG
function name:  (null)
number of ops:  41
compiled vars:  !0 = $a, !1 = $start, !2 = $i, !3 = $stop, !4 = $diff
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                                         $6      
          4        ASSIGN                                                   !1, $6
    8     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->9
   10     7    > > JMPZ                                                     !0, ->8
    8     8    >   PRE_INC                                                  !2
          9    >   IS_SMALLER                                               !2, 1000
         10      > JMPNZ                                                    ~10, ->7
   17    11    >   INIT_FCALL                                               'microtime'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !3, $11
   19    15        SUB                                              ~13     !3, !1
         16        ASSIGN                                                   !4, ~13
   21    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                                 
   23    20        INIT_FCALL                                               'microtime'
         21        SEND_VAL                                                 <true>
         22        DO_ICALL                                         $16     
         23        ASSIGN                                                   !1, $16
   25    24        ASSIGN                                                   !2, 0
         25      > JMP                                                      ->29
   27    26    >   IS_NOT_EQUAL                                             !0, 0
         27      > JMPZ                                                     ~19, ->28
   25    28    >   PRE_INC                                                  !2
         29    >   IS_SMALLER                                               !2, 1000
         30      > JMPNZ                                                    ~21, ->26
   34    31    >   INIT_FCALL                                               'microtime'
         32        SEND_VAL                                                 <true>
         33        DO_ICALL                                         $22     
         34        ASSIGN                                                   !3, $22
   36    35        SUB                                              ~24     !3, !1
         36        ASSIGN                                                   !4, ~24
   38    37        INIT_FCALL                                               'var_dump'
         38        SEND_VAR                                                 !4
         39        DO_ICALL                                                 
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.37 ms | 1400 KiB | 17 Q