3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "123"; if(is_numeric($string)){ echo "numeric <br>"; } else { echo "not numeric <br>"; } if(is_bool($string)) { echo "it is bool"; } else { echo "no bool"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
Branch analysis from position: 12
filename:       /in/qMHPd
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '123'
    4     1        INIT_FCALL                                               'is_numeric'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4      > JMPZ                                                     $2, ->7
    5     5    >   ECHO                                                     'numeric+%3Cbr%3E'
          6      > JMP                                                      ->8
    8     7    >   ECHO                                                     'not+numeric+%3Cbr%3E'
   11     8    >   TYPE_CHECK                                   12          !0
          9      > JMPZ                                                     ~3, ->12
   12    10    >   ECHO                                                     'it+is+bool'
         11      > JMP                                                      ->13
   15    12    >   ECHO                                                     'no+bool'
   17    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.15 ms | 1395 KiB | 15 Q