For Benchmarking PHP with iterations, I have considered a large for loop
for($j=0;$j<20000000;$j++)
;
Executing the same takes around 2.5 seconds in PHP 5.4 with eAccelerator enabled
The same loop in .jsp file takes around 15 milliseconds
for(int j=0;j<20000000;j++)
;
Why is there such a huge difference between both of them? Is there a way to make it work faster in PHP