Execute PHP on Linux console on-the-fly


If you want to run a short PHP command on the console, can you use the –run Parameter code quickly and easily run

php -r "echo 'hello world';"

//Ausgabe
hello world