php 5.3 compatibility

Binary notation changed to hex notation.
Array declaration changed to old style.