3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=10; if(gettype($i)=="integer"); echo"$i is integer"; ?> <?php $i=10; if(is_integer($i)) echo("$i is an integer"); if(is_string($i)) echo("$i is an string"); if(is_double($i)) echo("$i is a double"); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 4
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 18
Branch analysis from position: 13
Branch analysis from position: 4
filename:       /in/CKglS
function name:  (null)
number of ops:  24
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10
    3     1        GET_TYPE                                         ~2      !0
          2        IS_EQUAL                                                 ~2, 'integer'
          3      > JMPZ                                                     ~3, ->4
    4     4    >   NOP                                                      
          5        FAST_CONCAT                                      ~4      !0, '+is+integer'
          6        ECHO                                                     ~4
    7     7        ASSIGN                                                   !0, 10
    8     8        TYPE_CHECK                                   16          !0
          9      > JMPZ                                                     ~6, ->13
    9    10    >   NOP                                                      
         11        FAST_CONCAT                                      ~7      !0, '+is+an+integer'
         12        ECHO                                                     ~7
   10    13    >   TYPE_CHECK                                   64          !0
         14      > JMPZ                                                     ~8, ->18
   11    15    >   NOP                                                      
         16        FAST_CONCAT                                      ~9      !0, '+is+an+string'
         17        ECHO                                                     ~9
   12    18    >   TYPE_CHECK                                   32          !0
         19      > JMPZ                                                     ~10, ->23
   13    20    >   NOP                                                      
         21        FAST_CONCAT                                      ~11     !0, '+is+a+double'
         22        ECHO                                                     ~11
   14    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.3 ms | 1394 KiB | 13 Q