#!/bin/bash
set -eux

wget -nc https://getcomposer.org/composer.phar
php composer.phar self-update

php composer.phar install

cat >custom-php.ini <<EOL

EOL

echo -n "" > results.txt

for i in *.php; do
	/usr/bin/time -f "%e\t$i" php -c custom-php.ini $i > /dev/null 2>> results.txt
done

sort -rn -o results.txt results.txt

#!/bin/bash
set -eux

wget -nc https://getcomposer.org/composer.phar
php composer.phar self-update

php composer.phar install

cat >custom-php.ini <<EOL

EOL

echo -n "" > results.txt

for i in *.php; do
	/usr/bin/time -f "%e\t$i" --append -o results.txt php -c custom-php.ini $i
done

sort -rn -o results.txt results.txt

Update test running for php so that it outputs the result to std and the time result to results.txt such that it is possible to debug issue if there are any in the PHP scripts.
Update test running for php so that it outputs the result to std and the time result to results.txt such that it is possible to debug issue if there are any in the PHP scripts.
