fork download
  1. <?php
  2. $te = '13';
  3.  
  4. $text=strlen($te);
  5. if($text <= 2)
  6. {
  7. $g ==2;
  8. }
  9. else
  10. {
  11. $x=$text;
  12. $y=2;
  13. $tempMod = (float)($x / $y);
  14. $tempMod = ($tempMod - (int)$tempMod)*$y;
  15. if($tempMod ==0)
  16. {
  17. $g = $x / $y;
  18. }
  19. else
  20. {
  21. $x = $x+1;
  22. $g = $x / $y;
  23. }
  24. }
  25. echo $g;
  26.  
Success #stdin #stdout #stderr 0.01s 82880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Notice:  Undefined variable: g in /home/eA7RzX/prog.php on line 7
PHP Notice:  Undefined variable: g in /home/eA7RzX/prog.php on line 25