3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = $_POST['a'] = '6898557993159892'; $b= $_POST['b'] = '222.0'; echo $a."\n"; echo $b."\n"; echo (!is_numeric(($a * $b) . '')) ? "yes right way \n":"not number...\n"; echo (($a * $b) != INF) ? "YES infinite.. \n":"NOt inf ... \n"; if(!is_numeric (($a * $b) . '') && (($a * $b) != INF)) { echo "good\n"; }else{echo "WRONG...\n";}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 46) Position 1 = 37, Position 2 = 40
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 43
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
Branch analysis from position: 28
2 jumps found. (Code = 46) Position 1 = 37, Position 2 = 40
Branch analysis from position: 37
Branch analysis from position: 40
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
Branch analysis from position: 28
filename:       /in/ecA5I
function name:  (null)
number of ops:  45
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $2      '_POST'
          1        ASSIGN_DIM                                       ~3      $2, 'a'
          2        OP_DATA                                                  '6898557993159892'
          3        ASSIGN                                                   !0, ~3
    3     4        FETCH_W                      global              $5      '_POST'
          5        ASSIGN_DIM                                       ~6      $5, 'b'
          6        OP_DATA                                                  '222.0'
          7        ASSIGN                                                   !1, ~6
    5     8        CONCAT                                           ~8      !0, '%0A'
          9        ECHO                                                     ~8
    6    10        CONCAT                                           ~9      !1, '%0A'
         11        ECHO                                                     ~9
    8    12        INIT_FCALL                                               'is_numeric'
         13        MUL                                              ~10     !0, !1
         14        CONCAT                                           ~11     ~10, ''
         15        SEND_VAL                                                 ~11
         16        DO_ICALL                                         $12     
         17        BOOL_NOT                                         ~13     $12
         18      > JMPZ                                                     ~13, ->21
         19    >   QM_ASSIGN                                        ~14     'yes+right+way+%0A'
         20      > JMP                                                      ->22
         21    >   QM_ASSIGN                                        ~14     'not+number...%0A'
         22    >   ECHO                                                     ~14
    9    23        MUL                                              ~15     !0, !1
         24        IS_NOT_EQUAL                                             ~15, INF
         25      > JMPZ                                                     ~16, ->28
         26    >   QM_ASSIGN                                        ~17     'YES+infinite..+%0A'
         27      > JMP                                                      ->29
         28    >   QM_ASSIGN                                        ~17     'NOt+inf+...+%0A'
         29    >   ECHO                                                     ~17
   11    30        INIT_FCALL                                               'is_numeric'
         31        MUL                                              ~18     !0, !1
         32        CONCAT                                           ~19     ~18, ''
         33        SEND_VAL                                                 ~19
         34        DO_ICALL                                         $20     
         35        BOOL_NOT                                         ~21     $20
         36      > JMPZ_EX                                          ~21     ~21, ->40
         37    >   MUL                                              ~22     !0, !1
         38        IS_NOT_EQUAL                                     ~23     ~22, INF
         39        BOOL                                             ~21     ~23
         40    > > JMPZ                                                     ~21, ->43
   13    41    >   ECHO                                                     'good%0A'
         42      > JMP                                                      ->44
   14    43    >   ECHO                                                     'WRONG...%0A'
         44    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.92 ms | 1400 KiB | 15 Q