Increase min PHP to 5.4

Signed-off-by: crynobone <crynobone@gmail.com>
Swap and with && and or with ||.

Signed-off-by: crynobone <crynobone@gmail.com>
Merge branch '2.1'