3v4l.org

run code in 300+ PHP versions simultaneously
<?php $silence = ''; $fxoPattern2DisconnectCount = 0; function cfgIsNumeric( $value ) { return ( ($value !== '') && preg_match("/^[-+]?[0-9]+$/", $value) > 0 ); } function cfgIsValidRangeOrZero( $value, $min, $max) { return ( ($value !== '') && cfgIsNumeric($value) && ((int)$value == 0 || ((int)$value >= $min && (int)$value <= $max)) ); } if( !cfgIsValidRangeOrZero($silence, 50, 750) || ($fxoPattern2DisconnectCount > 0 && $silence == 0 ) ) echo "!"; else echo "?";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 14
filename:       /in/9QMjZ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $silence, !1 = $fxoPattern2DisconnectCount
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, 0
   13     2        INIT_FCALL                                               'cfgisvalidrangeorzero'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 50
          5        SEND_VAL                                                 750
          6        DO_FCALL                                      0  $4      
          7        BOOL_NOT                                         ~5      $4
          8      > JMPNZ_EX                                         ~5      ~5, ->14
   14     9    >   IS_SMALLER                                       ~6      0, !1
         10      > JMPZ_EX                                          ~6      ~6, ->13
         11    >   IS_EQUAL                                         ~7      !0, 0
         12        BOOL                                             ~6      ~7
         13    >   BOOL                                             ~5      ~6
         14    > > JMPZ                                                     ~5, ->17
   15    15    >   ECHO                                                     '%21'
         16      > JMP                                                      ->18
   16    17    >   ECHO                                                     '%3F'
         18    > > RETURN                                                   1

Function cfgisnumeric:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/9QMjZ
function name:  cfgIsNumeric
number of ops:  11
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        IS_NOT_IDENTICAL                                 ~1      !0, ''
          2      > JMPZ_EX                                          ~1      ~1, ->9
          3    >   INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2F%5E%5B-%2B%5D%3F%5B0-9%5D%2B%24%2F'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        IS_SMALLER                                       ~3      0, $2
          8        BOOL                                             ~1      ~3
          9    > > RETURN                                                   ~1
    8    10*     > RETURN                                                   null

End of function cfgisnumeric

Function cfgisvalidrangeorzero:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 20
Branch analysis from position: 21
Branch analysis from position: 9
filename:       /in/9QMjZ
function name:  cfgIsValidRangeOrZero
number of ops:  23
compiled vars:  !0 = $value, !1 = $min, !2 = $max
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   10     3        IS_NOT_IDENTICAL                                 ~3      !0, ''
          4      > JMPZ_EX                                          ~3      ~3, ->9
          5    >   INIT_FCALL                                               'cfgisnumeric'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0  $4      
          8        BOOL                                             ~3      $4
          9    > > JMPZ_EX                                          ~3      ~3, ->21
         10    >   CAST                                          4  ~5      !0
         11        IS_EQUAL                                         ~6      ~5, 0
         12      > JMPNZ_EX                                         ~6      ~6, ->20
         13    >   CAST                                          4  ~7      !0
         14        IS_SMALLER_OR_EQUAL                              ~8      !1, ~7
         15      > JMPZ_EX                                          ~8      ~8, ->19
         16    >   CAST                                          4  ~9      !0
         17        IS_SMALLER_OR_EQUAL                              ~10     ~9, !2
         18        BOOL                                             ~8      ~10
         19    >   BOOL                                             ~6      ~8
         20    >   BOOL                                             ~3      ~6
         21    > > RETURN                                                   ~3
   11    22*     > RETURN                                                   null

End of function cfgisvalidrangeorzero

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.04 ms | 1403 KiB | 17 Q