The current version of the PHP client does not support Protocol Buffers. If your node has default settings, port 10017 is used for Protocol Buffer connections while port 10018 is used for HTTP connections.
Please change the port to 10018 in your example and try again.