Compatibility script for php versions less