3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php #$_GET['honeypot'] = '6898557993159892'; #$honeypot = ($_GET['honeypot'] * 1337) + 1.7; $honeypot = (" \t\r\n 6898557993159892" * 1337) + 1.7 ; echo $honeypot."\n"; echo (!preg_match('/[^0-9]/',''.$honeypot)) ? "YES":"no this isnt correct "; echo (is_float((int)round($honeypot) - 33)) ? " yeS we are float":"NO"; if(!preg_match('/[^0-9]/',(string)$honeypot) && is_float((int)round($honeypot) - 33)) { echo "\ngood\n"; }else{ echo "\nWRONG\n"; }
based on 0ucPI
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
Jump found. Position 1 = 13
Branch analysis from position: 13
Jump found. Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
Jump found. Position 1 = 24
Branch analysis from position: 24
Jump found. Position 1 = 32, Position 2 = 39
Branch analysis from position: 32
Jump found. Position 1 = 40, Position 2 = 42
Branch analysis from position: 40
Jump found. Position 1 = 43
Branch analysis from position: 43
Jump found. Position 1 = -2
Branch analysis from position: 42
Jump found. Position 1 = -2
Branch analysis from position: 39
Branch analysis from position: 23
Jump found. Position 1 = 32, Position 2 = 39
Branch analysis from position: 32
Branch analysis from position: 39
Branch analysis from position: 12
Jump found. Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
Branch analysis from position: 23
filename:       /in/2TTfA
function name:  (null)
number of ops:  44
compiled vars:  !0 = $honeypot
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   6     0  E >   ASSIGN                                                   !0, 9.22337e+18
   8     1        CONCAT                                           ~2      !0, '%0A'
         2        ECHO                                                     ~2
  10     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
  11    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                                    5  ~10     ~9
        20      > JMPZ                                                     ~10, ->23
        21    >   QM_ASSIGN                                        ~11     '+++yeS+we+are+float'
        22      > JMP                                                      ->24
        23    >   QM_ASSIGN                                        ~11     'NO'
        24    >   ECHO                                                     ~11
  13    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                                    5  ~18     ~17
        38        BOOL                                             ~14     ~18
        39    > > JMPZ                                                     ~14, ->42
  15    40    >   ECHO                                                     '%0Agood%0A'
        41      > JMP                                                      ->43
  18    42    >   ECHO                                                     '%0AWRONG%0A'
        43    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0