Using the script below you can find how much time it took to execute your ActionScript code
var startTime:Date = new Date();
// execute your code here
var endTime:Date = new Date();
trace("Time take to execute the code "+String(endTime.getTime()-startTime.getTime())+" milliseconds");
Check PHP version here
Check Javascript version here