What are some common text editors or IDEs used for writing PHP code?

Common text editors or IDEs used for writing PHP code include Sublime Text, Visual Studio Code, PHPStorm, Atom, and Notepad++. These tools offer features such as syntax highlighting, code completion, debugging capabilities, and integration with version control systems, making them popular choices for PHP development.

<?php
// PHP code snippet
echo "Hello, world!";
?>