3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=10; if(gettype($i)=="integer"); echo"$i is integer"; ?> <?php $i=jyo; 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 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 19
Branch analysis from position: 14
Branch analysis from position: 4
filename:       /in/EKng5
function name:  (null)
number of ops:  25
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        FETCH_CONSTANT                                   ~5      'jyo'
          8        ASSIGN                                                   !0, ~5
    8     9        TYPE_CHECK                                   16          !0
         10      > JMPZ                                                     ~7, ->14
    9    11    >   NOP                                                      
         12        FAST_CONCAT                                      ~8      !0, '+is+an+integer'
         13        ECHO                                                     ~8
   10    14    >   TYPE_CHECK                                   64          !0
         15      > JMPZ                                                     ~9, ->19
   11    16    >   NOP                                                      
         17        FAST_CONCAT                                      ~10     !0, '+is+an+string'
         18        ECHO                                                     ~10
   12    19    >   TYPE_CHECK                                   32          !0
         20      > JMPZ                                                     ~11, ->24
   13    21    >   NOP                                                      
         22        FAST_CONCAT                                      ~12     !0, '+is+a+double'
         23        ECHO                                                     ~12
   14    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.09 ms | 1398 KiB | 13 Q