3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8_string = "https://\xec\xe5\xf5\xe0\xed\xe8\xe7\xe8\xf0\xee\xe2\xe0\xed\xed\xe0\xff-\xf8\xf2\xf3\xea\xe0\xf2\xf3\xf0\xea\xe024.\xf0\xf4/"; // $utf8_string = "\x5A\x6F\xC3\xAB"; // 'Zoë' in UTF-8 $utf16_string = UConverter::transcode($utf8_string, 'UTF-16BE', 'UTF-8'); // echo bin2hex($utf16_string), "\n"; echo $utf16_string;
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14, 8.5.0
https://��������������������������������-��������������������24.����/
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 8.3.28
/bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28)
Process exited with code 1.

preferences:
63.46 ms | 407 KiB | 5 Q