3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_POST['solution'] = 6898557993159892.0; $solution=(($_POST['solution']*1337)+1.7); $solution=!preg_match('/[^0-9]/',''.$solution)?(int)round($solution)-33:1337; echo $solution.' '.gettype($solution); if($solution=='float'){ echo 'WE rock'; } ?>
based on cSOND
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 15, Position 2 = 22
Branch analysis from position: 15
Jump found. Position 1 = 23
Branch analysis from position: 23
Jump found. Position 1 = 32, Position 2 = 33
Branch analysis from position: 32
Jump found. Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 22
Jump found. Position 1 = 32, Position 2 = 33
Branch analysis from position: 32
Branch analysis from position: 33
filename:       /in/GjJla
function name:  (null)
number of ops:  34
compiled vars:  !0 = $solution
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   FETCH_W                      global              $1      '_POST'
         1        ASSIGN_DIM                                               $1, 'solution'
         2        OP_DATA                                                  6.89856e+15
   6     3        FETCH_R                      global              $3      '_POST'
         4        FETCH_DIM_R                                      $4      $3, 'solution'
         5        MUL                                              ~5      $4, 1337
         6        ADD                                              ~6      ~5, 1.7
         7        ASSIGN                                                   !0, ~6
   7     8        INIT_FCALL                                               'preg_match'
         9        SEND_VAL                                                 '%2F%5B%5E0-9%5D%2F'
        10        CONCAT                                           ~8      '', !0
        11        SEND_VAL                                                 ~8
        12        DO_ICALL                                         $9      
        13        BOOL_NOT                                         ~10     $9
        14      > JMPZ                                                     ~10, ->22
        15    >   INIT_FCALL                                               'round'
        16        SEND_VAR                                                 !0
        17        DO_ICALL                                         $11     
        18        CAST                                          4  ~12     $11
        19        SUB                                              ~13     ~12, 33
        20        QM_ASSIGN                                        ~14     ~13
        21      > JMP                                                      ->23
        22    >   QM_ASSIGN                                        ~14     1337
        23    >   ASSIGN                                                   !0, ~14
   9    24        CONCAT                                           ~16     !0, '+'
        25        INIT_FCALL                                               'gettype'
        26        SEND_VAR                                                 !0
        27        DO_ICALL                                         $17     
        28        CONCAT                                           ~18     ~16, $17
        29        ECHO                                                     ~18
  10    30        IS_EQUAL                                         ~19     !0, 'float'
        31      > JMPZ                                                     ~19, ->33
  11    32    >   ECHO                                                     'WE+rock'
        33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0