3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $start = microtime(true); for ($i=0; $i < 1000000; ++$i) { if (false) {} } $end = microtime(true); echo 'if(false): ' . sprintf('%f', $end - $start) . PHP_EOL; $start = microtime(true); for ($i=0; $i < 1000000; ++$i) { if (null) {} } $end = microtime(true); echo 'if(null): ' . sprintf('%f', $end - $start) . PHP_EOL;
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 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 29
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 29
Branch analysis from position: 33
Branch analysis from position: 29
Branch analysis from position: 30
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/jDDOr
function name:  (null)
number of ops:  46
compiled vars:  !0 = $i, !1 = $start, !2 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    4     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        ASSIGN                                                   !0, 0
          6      > JMP                                                      ->9
    6     7    > > JMPZ                                                     <false>, ->8
    5     8    >   PRE_INC                                                  !0
          9    >   IS_SMALLER                                               !0, 1000000
         10      > JMPNZ                                                    ~8, ->7
    8    11    >   INIT_FCALL                                               'microtime'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
    9    15        INIT_FCALL                                               'sprintf'
         16        SEND_VAL                                                 '%25f'
         17        SUB                                              ~11     !2, !1
         18        SEND_VAL                                                 ~11
         19        DO_ICALL                                         $12     
         20        CONCAT                                           ~13     'if%28false%29%3A+', $12
         21        CONCAT                                           ~14     ~13, '%0A'
         22        ECHO                                                     ~14
   11    23        INIT_FCALL                                               'microtime'
         24        SEND_VAL                                                 <true>
         25        DO_ICALL                                         $15     
         26        ASSIGN                                                   !1, $15
   12    27        ASSIGN                                                   !0, 0
         28      > JMP                                                      ->31
   13    29    > > JMPZ                                                     null, ->30
   12    30    >   PRE_INC                                                  !0
         31    >   IS_SMALLER                                               !0, 1000000
         32      > JMPNZ                                                    ~19, ->29
   15    33    >   INIT_FCALL                                               'microtime'
         34        SEND_VAL                                                 <true>
         35        DO_ICALL                                         $20     
         36        ASSIGN                                                   !2, $20
   16    37        INIT_FCALL                                               'sprintf'
         38        SEND_VAL                                                 '%25f'
         39        SUB                                              ~22     !2, !1
         40        SEND_VAL                                                 ~22
         41        DO_ICALL                                         $23     
         42        CONCAT                                           ~24     'if%28null%29%3A+', $23
         43        CONCAT                                           ~25     ~24, '%0A'
         44        ECHO                                                     ~25
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.47 ms | 1400 KiB | 17 Q