3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.56 ms | 1400 KiB | 17 Q