3v4l.org

run code in 300+ PHP versions simultaneously
<?php // UTF-16 surrogate codepoints have no valid encoding in any UTF form. // https://en.wikipedia.org/wiki/UTF-16#U.2BD800_to_U.2BDFFF $high = "\u{D852}"; $low = "\u{DF62}"; $pair = $high.$low; var_dump( @\iconv('UTF-8', 'UTF-8', $high) === false, @\iconv('UTF-8', 'UTF-8', $low) === false, @\iconv('UTF-8', 'UTF-8', $pair) === false ); /* Should be: * * bool(true) * bool(true) * bool(true) * * On Windows with 7.0 and 7.1 the result is: * bool(false) * bool(false) * bool(false) */
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) bool(true) bool(true)

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:
121.19 ms | 405 KiB | 5 Q