3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$pot = ("-0.0" * 1337) + 1.7 ; $pot = "0.0"; echo $pot."\n"; echo gettype($pot)."\n"; echo (!preg_match('/[^0-9]/',''.$pot)) ? "YES":"no this isnt correct "; echo (((int)round($pot) - 33)) ? " yeS we are float":"NO"; if(!preg_match('/[^0-9]/',''.$pot) && ((int)round($pot) - 33)) { $pot = (int)round($pot)-33.0; echo "\n".$pot."\n"; echo gettype($pot)."\n"; }else{ echo "\nWRONG\n"; echo "\n".$pot."\n"; echo gettype($pot)."\n"; } if($pot =='float'){echo "\ngood YOU ROCK\n"; }else{echo "\nWRONG you suck\n";}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 46) Position 1 = 34, Position 2 = 40
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 54
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 61
Branch analysis from position: 61
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 65
Branch analysis from position: 63
1 jumps found. (Code = 42) Position 1 = 66
Branch analysis from position: 66
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 65
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 54
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 65
Branch analysis from position: 63
Branch analysis from position: 65
Branch analysis from position: 40
Branch analysis from position: 25
2 jumps found. (Code = 46) Position 1 = 34, Position 2 = 40
Branch analysis from position: 34
Branch analysis from position: 40
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
Branch analysis from position: 25
filename:       /in/7aAF4
function name:  (null)
number of ops:  67
compiled vars:  !0 = $pot
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '0.0'
    5     1        CONCAT                                           ~2      !0, '%0A'
          2        ECHO                                                     ~2
    6     3        GET_TYPE                                         ~3      !0
          4        CONCAT                                           ~4      ~3, '%0A'
          5        ECHO                                                     ~4
    9     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2F%5B%5E0-9%5D%2F'
          8        CONCAT                                           ~5      '', !0
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                         $6      
         11        BOOL_NOT                                         ~7      $6
         12      > JMPZ                                                     ~7, ->15
         13    >   QM_ASSIGN                                        ~8      'YES'
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~8      'no+this+isnt+correct++'
         16    >   ECHO                                                     ~8
   10    17        INIT_FCALL                                               'round'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $9      
         20        CAST                                          4  ~10     $9
         21        SUB                                              ~11     ~10, 33
         22      > JMPZ                                                     ~11, ->25
         23    >   QM_ASSIGN                                        ~12     '+++yeS+we+are+float'
         24      > JMP                                                      ->26
         25    >   QM_ASSIGN                                        ~12     'NO'
         26    >   ECHO                                                     ~12
   12    27        INIT_FCALL                                               'preg_match'
         28        SEND_VAL                                                 '%2F%5B%5E0-9%5D%2F'
         29        CONCAT                                           ~13     '', !0
         30        SEND_VAL                                                 ~13
         31        DO_ICALL                                         $14     
         32        BOOL_NOT                                         ~15     $14
         33      > JMPZ_EX                                          ~15     ~15, ->40
         34    >   INIT_FCALL                                               'round'
         35        SEND_VAR                                                 !0
         36        DO_ICALL                                         $16     
         37        CAST                                          4  ~17     $16
         38        SUB                                              ~18     ~17, 33
         39        BOOL                                             ~15     ~18
         40    > > JMPZ                                                     ~15, ->54
   14    41    >   INIT_FCALL                                               'round'
         42        SEND_VAR                                                 !0
         43        DO_ICALL                                         $19     
         44        CAST                                          4  ~20     $19
         45        SUB                                              ~21     ~20, 33
         46        ASSIGN                                                   !0, ~21
   15    47        CONCAT                                           ~23     '%0A', !0
         48        CONCAT                                           ~24     ~23, '%0A'
         49        ECHO                                                     ~24
   16    50        GET_TYPE                                         ~25     !0
         51        CONCAT                                           ~26     ~25, '%0A'
         52        ECHO                                                     ~26
         53      > JMP                                                      ->61
   19    54    >   ECHO                                                     '%0AWRONG%0A'
   20    55        CONCAT                                           ~27     '%0A', !0
         56        CONCAT                                           ~28     ~27, '%0A'
         57        ECHO                                                     ~28
   21    58        GET_TYPE                                         ~29     !0
         59        CONCAT                                           ~30     ~29, '%0A'
         60        ECHO                                                     ~30
   25    61    >   IS_EQUAL                                                 !0, 'float'
         62      > JMPZ                                                     ~31, ->65
         63    >   ECHO                                                     '%0Agood+YOU+ROCK%0A'
         64      > JMP                                                      ->66
   26    65    >   ECHO                                                     '%0AWRONG+you+suck%0A'
         66    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.95 ms | 1400 KiB | 17 Q