fork download
  1. <?php
  2.  
  3.  
  4. $_POST['$source'] = 'zzzzzzzzzzzzzzzzz bo.y xxxxxxxxxxxxx';
  5.  
  6.  
  7. if(preg_match('(bo(\.?)y|man)', $_POST['$source']) === 1) {
  8. $gender = 'M';
  9. }elseif(preg_match('(gir|won)', $_POST['$source']) === 1){
  10. $gender = 'F';
  11. }elseif(preg_match('(othe)', $_POST['$source']) === 1){
  12. $gender = 'T';
  13. }
  14.  
  15. echo $gender;
Success #stdin #stdout 0.01s 82944KB
stdin
Standard input is empty
stdout
M