Thanks, i did what u said, but it didnt work nothing happen. Maybe its my path, i did this /usr/local/apache/bin/php and then php2xmi --path, but i am so confused, whats the difference /usr/....and /home/.... i got lost in these i guess.
That's a filesystem path. Different OS has the php binary in different places. You may already have php in the PATH system-variable, in which case, you don't need to specify the full path to php.
The example I gave above obviously needs a file foo.php with one or more classes inside it in order to do anything. This file must be in the working directory or in the PATH.