fork download
  1. <?php
  2. $bad_bot = 1;
  3. $bad_useragent = 1;
  4.  
  5. //1
  6. if ($bad_bot && $bad_useragent) {
  7. echo 'true';
  8. }
  9.  
  10. //2
  11. echo ($bad_bot && $bad_useragent) ? 123 : 321;
  12.  
  13. function ff(){
  14. $bad_bot = 1;
  15. $bad_useragent = 1;
  16. return ($bad_bot && $bad_useragent) ? 567 : 765;
  17. }
  18.  
  19. echo ff();
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
true123567