@ 2017-03-09T09:39:57Z <?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)
*/
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.31 , 7.4.0 - 7.4.32 , 8.0.0 - 8.0.12 , 8.0.14 - 8.0.30 , 8.1.0 - 8.1.33 , 8.2.0 - 8.2.29 , 8.3.0 - 8.3.25 , 8.4.1 - 8.4.12 bool(true)
bool(true)
bool(true)
Output for 7.3.32 - 7.3.33 , 7.4.33 , 8.0.13 Fatal error: Uncaught Error: Call to undefined function iconv() in /in/OmEPa:11
Stack trace:
#0 {main}
thrown in /in/OmEPa on line 11
Process exited with code 255 . Output for 5.6.0 - 5.6.40 bool(false)
bool(false)
bool(false)
preferences:dark mode live preview ace vim emacs key bindings
152.82 ms | 408 KiB | 5 Q