3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.14 ms | 1392 KiB | 17 Q