3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.77 ms | 1400 KiB | 15 Q