php 5.3 compatibility

In order to restore PHP 5.3 compatibility i changed the following things:
Binary notation changed to hex notation.
Array declaration changed to old style.