Binary Numbers
It doesn't look like nikic/PHP-Parser keeps track of how the number is written. It looks like zero-prefixed numbers are just converted to decimal, and printed back out as decimal: https://github.com/nikic/PHP-Parser/blob/master/lib/PHPParser/Node/Scalar/LNumber.php#L36-L50. Is this an acceptable transformation as is?
Yeah, I noticed that too. I accepted it, since it makes no functional difference. But maybe open a ticket on nikic/php-parser?
Similar one is array syntax is switched around.
If you want to preserve the formatting of numbers or strings, you need to do so manually, see for example https://github.com/nikic/PHP-Parser/issues/26. Though in this case the translation is likely in your favor as it automatically supports binary numbers and short array syntax on 5.3 ;)