I've checked out the latest development version:
https://xdebug.org/docs/install
This will checkout the latest development version which is currently 2.7.0RC2. You can also browse the source at https://github.com/derickr/xdebug.
I've tried to compile as they say on github
https://github.com/derickr/xdebug
./rebuild.sh