3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST["submit"])){ if($_POST['formsend']==1){ if($_POST["user"]!="" && $_POST["email"]!="" && $_POST["message"]!=""){ $file=fopen("database.txt","a+"); fwrite($file,$_POST["user"]." ".$_POST["email"]." ".$POST["message"]."\r\n"); fclose($file); } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 43
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 43
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 43
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
Branch analysis from position: 20
Branch analysis from position: 15
Branch analysis from position: 43
Branch analysis from position: 43
filename:       /in/HDbQi
function name:  (null)
number of ops:  44
compiled vars:  !0 = $file, !1 = $POST
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_IS                                         ~2      '_POST'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~2, 'submit'
          2      > JMPZ                                                     ~3, ->43
    3     3    >   FETCH_R                      global              ~4      '_POST'
          4        FETCH_DIM_R                                      ~5      ~4, 'formsend'
          5        IS_EQUAL                                                 ~5, 1
          6      > JMPZ                                                     ~6, ->43
    4     7    >   FETCH_R                      global              ~7      '_POST'
          8        FETCH_DIM_R                                      ~8      ~7, 'user'
          9        IS_NOT_EQUAL                                     ~9      ~8, ''
         10      > JMPZ_EX                                          ~9      ~9, ->15
         11    >   FETCH_R                      global              ~10     '_POST'
         12        FETCH_DIM_R                                      ~11     ~10, 'email'
         13        IS_NOT_EQUAL                                     ~12     ~11, ''
         14        BOOL                                             ~9      ~12
         15    > > JMPZ_EX                                          ~9      ~9, ->20
         16    >   FETCH_R                      global              ~13     '_POST'
         17        FETCH_DIM_R                                      ~14     ~13, 'message'
         18        IS_NOT_EQUAL                                     ~15     ~14, ''
         19        BOOL                                             ~9      ~15
         20    > > JMPZ                                                     ~9, ->43
    6    21    >   INIT_FCALL                                               'fopen'
         22        SEND_VAL                                                 'database.txt'
         23        SEND_VAL                                                 'a%2B'
         24        DO_ICALL                                         $16     
         25        ASSIGN                                                   !0, $16
    7    26        INIT_FCALL                                               'fwrite'
         27        SEND_VAR                                                 !0
         28        FETCH_R                      global              ~18     '_POST'
         29        FETCH_DIM_R                                      ~19     ~18, 'user'
         30        CONCAT                                           ~20     ~19, '+'
         31        FETCH_R                      global              ~21     '_POST'
         32        FETCH_DIM_R                                      ~22     ~21, 'email'
         33        CONCAT                                           ~23     ~20, ~22
         34        CONCAT                                           ~24     ~23, '+'
         35        FETCH_DIM_R                                      ~25     !1, 'message'
         36        CONCAT                                           ~26     ~24, ~25
         37        CONCAT                                           ~27     ~26, '%0D%0A'
         38        SEND_VAL                                                 ~27
         39        DO_ICALL                                                 
    8    40        INIT_FCALL                                               'fclose'
         41        SEND_VAR                                                 !0
         42        DO_ICALL                                                 
   11    43    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.42 ms | 1400 KiB | 19 Q