Php56 support for #4911

Opening this as a pull request so it gets tested