php code to print hello world code example Example 1: php hello world Click to copyprint "Hello World!"; Example 2: php hello world Click to copyecho "Hello, World!";