How can I start the php interactive mode (php -a) with pre-executing certain commands?
The option -B (--process-begin) seems exactly what I want, but it looks like this can not be combined with `-a-:
$ php -B '$x = true; echo $x;' -a
Either execute direct code, process stdin or use a file.
The php binary should be invoked from within another php console scripted and then handed over to the user.
Is it possible to supply code before handing over?
Or is there another PHP option which could be used?