Change php version to 5.4
Fix the arrays bugs