3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo 'PHP_VERSION: ', PHP_VERSION, "\n"; mb_regex_encoding('UTF-8') || exit("mb_regex_encoding('UTF-8') error."); foreach (['0085', '180e'] as $hex) { $utf8 = mb_convert_encoding(pack('N', hexdec($hex)), 'UTF-8', 'UTF-32BE'); echo "U+{$hex}", (mb_ereg_match('\A[\s]\z', $utf8) ? ' match \\s !' : '')."\n"; } foreach (['00ad', '200B'] as $hex) { $utf8 = mb_convert_encoding(pack('N', hexdec($hex)), 'UTF-8', 'UTF-32BE'); echo "U+{$hex}", (mb_ereg_match('\A[[:cntrl:]]\z', $utf8) ? ' match cntrl !' : '')."\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
U+0085 match \s ! U+180e U+00ad U+200B

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:
63.39 ms | 401 KiB | 8 Q