shell script vs php script .. which is faster and liter?

niceboy

Active Member
Sep 29, 2011
41
1
58
cPanel Access Level
Root Administrator
Hi,

If a task can be performed thru both shell script and php script, which one we should choose for performance reason?

which one use the least resources and executes faster?

I believe it should be shell script which is faster, because, the use of php scirpt needs another interpreter(in this case php) other than shell itself..

what do you think?