3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (filter_var(true, FILTER_VALIDATE_INT) === false ? "Is integer" : "Is not integer") . PHP_EOL; echo (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 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
Branch analysis from position: 19
filename:       /in/UdXOk
function name:  (null)
number of ops:  23
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      ~2, '%0A'
         10        ECHO                                                     ~3
    4    11        INIT_FCALL                                               'filter_var'
         12        SEND_VAL                                                 <false>
         13        SEND_VAL                                                 257
         14        DO_ICALL                                         $4      
         15        TYPE_CHECK                                    4          $4
         16      > JMPZ                                                     ~5, ->19
         17    >   QM_ASSIGN                                        ~6      'Is+integer'
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~6      'Is+not+integer'
         20    >   CONCAT                                           ~7      ~6, '%0A'
         21        ECHO                                                     ~7
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.41 ms | 1395 KiB | 15 Q