You could use h2tp transpiler to transpile HACK code to PHP:
You can do this thanks to Facebook Team and HACK Language.
Visit http://hacklang.org and http://hhvm.com for more info.
If you want to code directly in Hack + HHVM environment you can also use Facebook's internal IDE Nuclide