php exec terminal command code example Example: php run command terminal php -r "Print \"Hello, World!\";"