3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tsid = '-123'; if (!filter_var($tsid, FILTER_VALIDATE_INT, 0) || (intval($tsid) < 0)) { echo "err"; } else { echo "ok"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/MLYD5
function name:  (null)
number of ops:  16
compiled vars:  !0 = $tsid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '-123'
    4     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 257
          4        SEND_VAL                                                 0
          5        DO_ICALL                                         $2      
          6        BOOL_NOT                                         ~3      $2
          7      > JMPNZ_EX                                         ~3      ~3, ->11
          8    >   CAST                                          4  ~4      !0
          9        IS_SMALLER                                       ~5      ~4, 0
         10        BOOL                                             ~3      ~5
         11    > > JMPZ                                                     ~3, ->14
    5    12    >   ECHO                                                     'err'
         13      > JMP                                                      ->15
    8    14    >   ECHO                                                     'ok'
    9    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.06 ms | 1399 KiB | 15 Q