3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.98 ms | 1394 KiB | 13 Q