3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pot = ("-127150336574420347745e-23" * 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]/',''.$pot) && is_float((int)round($pot) - 33)) { echo "\nGood you found it\n"; }else{ echo "\nWRONG\n"; } if($pot=='float'){ echo "\n SOlution is Correct"; }else{ echo "\n WRONG SOlution"; }
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
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 47
Branch analysis from position: 45
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 47
Branch analysis from position: 45
Branch analysis from position: 47
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/N7lkW
function name:  (null)
number of ops:  49
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        CONCAT                                           ~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+you+found+it%0A'
         41      > JMP                                                      ->43
   15    42    >   ECHO                                                     '%0AWRONG%0A'
   18    43    >   IS_EQUAL                                                 !0, 'float'
         44      > JMPZ                                                     ~19, ->47
   20    45    >   ECHO                                                     '%0A+SOlution+is+Correct'
         46      > JMP                                                      ->48
   24    47    >   ECHO                                                     '%0A+WRONG+SOlution'
   25    48    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.13 ms | 1400 KiB | 17 Q