3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(iconv_substr("a\x00b\x00", 0, 1, 'UTF-16LE')); var_dump(iconv_substr("\x00a\x00b", 0, 1, 'UTF-16BE'));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: iconv_substr(): Wrong encoding, conversion from "UTF-16LE" to "UCS-4LE" is not allowed in /in/C9im4 on line 3 bool(false) Warning: iconv_substr(): Wrong encoding, conversion from "UTF-16BE" to "UCS-4LE" is not allowed in /in/C9im4 on line 4 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:
31 ms | 402 KiB | 8 Q