Output of the "Replacing UTF8mb4 characters to HTML entities in a string with PHP" PHP snippet

Environment:

  • Strangebuzz Snippet VM: 6.4.9
  • PHP: 8.4

Code execution output:

inital string: Hello 🙏 world 🙂!
final string: Hello 🙏 world 🙂!