Java vs. PHP Speed Comparison -
which language faster web, java or php? it difficult 1 answer in theory java should faster: it's precompiled, trivial algorithim run faster in java php , there has been vast amount of work done optimise java improving code, standard libraries, jit compilers, etc. php loaded , interpreted every time if you're not using zend optimiser, objects intialised on every execution, trivial string varaible complex object many methods support. the problem in practice php sites seem run faster using fewer resources. i think because php developers take more straightforward approach design , don't lost trying implement exotic design patterns , implementing endless pointless abstractions.