3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pot = ('f' * 1337) + 1.7 ; echo $pot."\n"; echo (!preg_match('/[^0-9]/',''.$pot)) ? "YES":"no this isnt correct "; echo (is_float((int)round($pot) - 33)) ? " yeS we are float":"NO"; if(!preg_match('/[^0-9]/',(string)$pot) && is_float((int)round($pot) - 33)) { echo "\ngood\n"; }else{ echo "\nWRONG\n"; }
Finding entry points
Branch analysis from position: 0
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
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 = 41
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 44
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
Branch analysis from position: 25
2 jumps found. (Code = 46) Position 1 = 34, Position 2 = 41
Branch analysis from position: 34
Branch analysis from position: 41
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
Branch analysis from position: 25
filename:       /in/iknRd
function name:  (null)
number of ops:  46
compiled vars:  !0 = $pot
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   MUL                                              ~1      'f', 1337
          1        ADD                                              ~2      ~1, 1.7
          2        ASSIGN                                                   !0, ~2
    5     3        CONCAT                                           ~4      !0, '%0A'
          4        ECHO                                                     ~4
    7     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%2F%5B%5E0-9%5D%2F'
          7        CONCAT                                           ~5      '', !0
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        BOOL_NOT                                         ~7      $6
         11      > JMPZ                                                     ~7, ->14
         12    >   QM_ASSIGN                                        ~8      'YES'
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~8      'no+this+isnt+correct++'
         15    >   ECHO                                                     ~8
    8    16        INIT_FCALL                                               'round'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $9      
         19        CAST                                          4  ~10     $9
         20        SUB                                              ~11     ~10, 33
         21        TYPE_CHECK                                   32          ~11
         22      > JMPZ                                                     ~12, ->25
         23    >   QM_ASSIGN                                        ~13     '+++yeS+we+are+float'
         24      > JMP                                                      ->26
         25    >   QM_ASSIGN                                        ~13     'NO'
         26    >   ECHO                                                     ~13
   10    27        INIT_FCALL                                               'preg_match'
         28        SEND_VAL                                                 '%2F%5B%5E0-9%5D%2F'
         29        CAST                                          6  ~14     !0
         30        SEND_VAL                                                 ~14
         31        DO_ICALL                                         $15     
         32        BOOL_NOT                                         ~16     $15
         33      > JMPZ_EX                                          ~16     ~16, ->41
         34    >   INIT_FCALL                                               'round'
         35        SEND_VAR                                                 !0
         36        DO_ICALL                                         $17     
         37        CAST                                          4  ~18     $17
         38        SUB                                              ~19     ~18, 33
         39        TYPE_CHECK                                   32  ~20     ~19
         40        BOOL                                             ~16     ~20
         41    > > JMPZ                                                     ~16, ->44
   12    42    >   ECHO                                                     '%0Agood%0A'
         43      > JMP                                                      ->45
   15    44    >   ECHO                                                     '%0AWRONG%0A'
   16    45    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.85 ms | 1400 KiB | 17 Q