News for hackers. Stuff that matters.
Re:40 Tips for optimizing your php Code by ratsbane on Monday October 15, 2007 @04:09PM (#68192)
Here is the java code too. First maxval1.java:

  public class maxval1 {
    static int $i, $x;

    public static void main(String args[]) throws Exception {
      for ($x=$i=1; $i<100000000/10; $i++) {$x++;}
      System.out.println($x);
      }
  }
And maxval2.java:

  public class maxval2 {
    static int $a, $i, $x;

    public static void main(String args[]) throws Exception {
      $a=100000000/10;
      for ($x=$i=1; $i<$a; $i++) {$x++;}
      System.out.println($x);
      }
  }

There are no comments on this comment yet.