3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; $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/eFFA9
function name:  (null)
number of ops:  37
compiled vars:  !0 = $start, !1 = $i, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cmicrotime'
          1        SEND_VAL_EX                                              <true>
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !0, $3
    6     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->9
    7     6    >   TYPE_CHECK                                    2  ~6      !1
          7        ASSIGN                                                   !2, ~6
    6     8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 10000
         10      > JMPNZ                                                    ~9, ->6
   10    11    >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
         12        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cmicrotime'
         13        SEND_VAL_EX                                              <true>
         14        DO_FCALL                                      0  $10     
         15        SUB                                              ~11     $10, !0
         16        SEND_VAL_EX                                              ~11
         17        DO_FCALL                                      0          
   12    18        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cmicrotime'
         19        SEND_VAL_EX                                              <true>
         20        DO_FCALL                                      0  $13     
         21        ASSIGN                                                   !0, $13
   13    22        ASSIGN                                                   !1, 0
         23      > JMP                                                      ->27
   14    24    >   TYPE_CHECK                                    2  ~16     !1
         25        ASSIGN                                                   !2, ~16
   13    26        PRE_INC                                                  !1
         27    >   IS_SMALLER                                               !1, 10000
         28      > JMPNZ                                                    ~19, ->24
   17    29    >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
         30        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cmicrotime'
         31        SEND_VAL_EX                                              <true>
         32        DO_FCALL                                      0  $20     
         33        SUB                                              ~21     $20, !0
         34        SEND_VAL_EX                                              ~21
         35        DO_FCALL                                      0          
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.9 ms | 1400 KiB | 17 Q