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 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 26
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 26
Branch analysis from position: 31
Branch analysis from position: 26
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
Branch analysis from position: 6
filename:       /in/X6gcE
function name:  (null)
number of ops:  39
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                                                      ->11
    7     6    >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cis_null'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0  $6      
          9        ASSIGN                                                   !2, $6
    6    10        PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 10000
         12      > JMPNZ                                                    ~9, ->6
   10    13    >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
         14        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cmicrotime'
         15        SEND_VAL_EX                                              <true>
         16        DO_FCALL                                      0  $10     
         17        SUB                                              ~11     $10, !0
         18        SEND_VAL_EX                                              ~11
         19        DO_FCALL                                      0          
   12    20        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cmicrotime'
         21        SEND_VAL_EX                                              <true>
         22        DO_FCALL                                      0  $13     
         23        ASSIGN                                                   !0, $13
   13    24        ASSIGN                                                   !1, 0
         25      > JMP                                                      ->29
   14    26    >   TYPE_CHECK                                    2  ~16     !1
         27        ASSIGN                                                   !2, ~16
   13    28        PRE_INC                                                  !1
         29    >   IS_SMALLER                                               !1, 10000
         30      > JMPNZ                                                    ~19, ->26
   17    31    >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
         32        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cmicrotime'
         33        SEND_VAL_EX                                              <true>
         34        DO_FCALL                                      0  $20     
         35        SUB                                              ~21     $20, !0
         36        SEND_VAL_EX                                              ~21
         37        DO_FCALL                                      0          
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.95 ms | 1400 KiB | 19 Q