3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo; define ('Foo\null', 1); $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);
based on UNihE
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 10
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 29
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 29
Branch analysis from position: 35
Branch analysis from position: 29
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 10
Branch analysis from position: 16
Branch analysis from position: 10
filename:       /in/UhWCl
function name:  (null)
number of ops:  43
compiled vars:  !0 = $start, !1 = $i, !2 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cdefine'
         1        SEND_VAL_EX                                              'Foo%5Cnull'
         2        SEND_VAL_EX                                              1
         3        DO_FCALL                                      0          
   6     4        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cmicrotime'
         5        SEND_VAL_EX                                              <true>
         6        DO_FCALL                                      0  $4      
         7        ASSIGN                                                   !0, $4
   7     8        ASSIGN                                                   !1, 0
         9      > JMP                                                      ->14
   8    10    >   TYPE_CHECK                                    1  ~7      !1
        11        ASSIGN                                                   !2, ~7
   7    12        POST_INC                                         ~9      !1
        13        FREE                                                     ~9
        14    >   IS_SMALLER                                       ~10     !1, 10000
        15      > JMPNZ                                                    ~10, ->10
  11    16    >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
        17        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cmicrotime'
        18        SEND_VAL_EX                                              <true>
        19        DO_FCALL                                      0  $11     
        20        SUB                                              ~12     $11, !0
        21        SEND_VAL_EX                                              ~12
        22        DO_FCALL                                      0          
  13    23        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cmicrotime'
        24        SEND_VAL_EX                                              <true>
        25        DO_FCALL                                      0  $14     
        26        ASSIGN                                                   !0, $14
  14    27        ASSIGN                                                   !1, 0
        28      > JMP                                                      ->33
  15    29    >   IS_IDENTICAL                                     ~17     null, !1
        30        ASSIGN                                                   !2, ~17
  14    31        POST_INC                                         ~19     !1
        32        FREE                                                     ~19
        33    >   IS_SMALLER                                       ~20     !1, 10000
        34      > JMPNZ                                                    ~20, ->29
  18    35    >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
        36        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cmicrotime'
        37        SEND_VAL_EX                                              <true>
        38        DO_FCALL                                      0  $21     
        39        SUB                                              ~22     $21, !0
        40        SEND_VAL_EX                                              ~22
        41        DO_FCALL                                      0          
        42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0