3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* https://www.php.net/manual/en/function.ctype-print.php Returns true if every character in text will actually create output (including blanks). Returns false if text contains control characters or characters that do not have any output or control function at all. */ function ctype_print_utf(string $string): bool { return preg_match('/[[:cntrl:]]/', $string) === 0; } $items = ["Curaçao", "Curaçao\n"]; foreach ($items as $item) { var_dump($item, ctype_print_utf($item)); }
Output for git.master, git.master_jit, rfc.property-hooks
string(8) "Curaçao" bool(true) string(9) "Curaçao " bool(false)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
30.04 ms | 405 KiB | 5 Q