3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "True " . (filter_var(true, FILTER_VALIDATE_INT) === false ? "is integer" : "is not integer") . PHP_EOL; echo "False " . (filter_var(false, FILTER_VALIDATE_INT) === false ? "is integer" : "is not integer") . PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
Branch analysis from position: 20
filename:       /in/FKOGP
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'filter_var'
          1        SEND_VAL                                                 <true>
          2        SEND_VAL                                                 257
          3        DO_ICALL                                         $0      
          4        TYPE_CHECK                                    4          $0
          5      > JMPZ                                                     ~1, ->8
          6    >   QM_ASSIGN                                        ~2      'is+integer'
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~2      'is+not+integer'
          9    >   CONCAT                                           ~3      'True+', ~2
         10        CONCAT                                           ~4      ~3, '%0A'
         11        ECHO                                                     ~4
    4    12        INIT_FCALL                                               'filter_var'
         13        SEND_VAL                                                 <false>
         14        SEND_VAL                                                 257
         15        DO_ICALL                                         $5      
         16        TYPE_CHECK                                    4          $5
         17      > JMPZ                                                     ~6, ->20
         18    >   QM_ASSIGN                                        ~7      'is+integer'
         19      > JMP                                                      ->21
         20    >   QM_ASSIGN                                        ~7      'is+not+integer'
         21    >   CONCAT                                           ~8      'False+', ~7
         22        CONCAT                                           ~9      ~8, '%0A'
         23        ECHO                                                     ~9
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.13 ms | 1395 KiB | 15 Q