3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.48 ms | 1400 KiB | 17 Q