Add some version agnosticism for pre PHP 5.6
Add some tests and a readme