I have found this tool that downgrade the php code from php5.4 to 5.3 https://github.com/endel/php-code-downgrade
actually do you know if there's something to upgrade from 5.3 to 5.4? because my php code seems not to work anymore and it was in php5.3 that is no more support by my webhost
edit: I solved at the end.. I just found out that the problem was a server configuration of the web-hosting :) (#FCGI mode)