3v4l.org

run code in 300+ PHP versions simultaneously
<?php $null = NULL; $empty = ''; $start=microtime(TRUE); for($i=0;$i<10000000;$i++) { if($null === NULL) { } } var_export(microtime(TRUE)-$start); echo "\n"; $start=microtime(TRUE); for($i=0;$i<10000000;$i++) { if($empty === '') { } } var_export(microtime(TRUE)-$start); echo "\n"; $start=microtime(TRUE); for($i=0;$i<10000000;$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 = 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 = 42) Position 1 = 50
Branch analysis from position: 50
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 46
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 49
Branch analysis from position: 49
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 46
Branch analysis from position: 52
Branch analysis from position: 46
Branch analysis from position: 49
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: 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/6gPbC
function name:  (null)
number of ops:  61
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    >   TYPE_CHECK                                    2          !0
          9      > JMPZ                                                     ~9, ->10
    7    10    >   PRE_INC                                                  !3
         11    >   IS_SMALLER                                               !3, 10000000
         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                                                      ->30
   17    27    >   IS_IDENTICAL                                             !1, ''
         28      > JMPZ                                                     ~18, ->29
   16    29    >   PRE_INC                                                  !3
         30    >   IS_SMALLER                                               !3, 10000000
         31      > JMPNZ                                                    ~20, ->27
   21    32    >   INIT_FCALL                                               'var_export'
         33        INIT_FCALL                                               'microtime'
         34        SEND_VAL                                                 <true>
         35        DO_ICALL                                         $21     
         36        SUB                                              ~22     $21, !2
         37        SEND_VAL                                                 ~22
         38        DO_ICALL                                                 
   22    39        ECHO                                                     '%0A'
   24    40        INIT_FCALL                                               'microtime'
         41        SEND_VAL                                                 <true>
         42        DO_ICALL                                         $24     
         43        ASSIGN                                                   !2, $24
   25    44        ASSIGN                                                   !3, 0
         45      > JMP                                                      ->50
   26    46    >   ISSET_ISEMPTY_CV                                 ~27     !0
         47        BOOL_NOT                                         ~28     ~27
         48      > JMPZ                                                     ~28, ->49
   25    49    >   PRE_INC                                                  !3
         50    >   IS_SMALLER                                               !3, 10000000
         51      > JMPNZ                                                    ~30, ->46
   30    52    >   INIT_FCALL                                               'var_export'
         53        INIT_FCALL                                               'microtime'
         54        SEND_VAL                                                 <true>
         55        DO_ICALL                                         $31     
         56        SUB                                              ~32     $31, !2
         57        SEND_VAL                                                 ~32
         58        DO_ICALL                                                 
   31    59        ECHO                                                     '%0A'
         60      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.21 ms | 1400 KiB | 17 Q