3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.12 ms | 1386 KiB | 15 Q