3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.55 ms | 1396 KiB | 15 Q