3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cp1252str = ''; for ($i = 128; $i < 256; $i++) { $cp1252str .= chr($i); } print "Work iconv:\n"; iconv("cp1252", "utf-8//IGNORE", $cp1252str); print "Work iconv_strlen:\n"; iconv_strlen($cp1252str, "utf-8//IGNORE");
Output for git.master, git.master_jit, rfc.property-hooks
Work iconv: Warning: iconv(): Wrong encoding, conversion from "cp1252" to "utf-8//IGNORE" is not allowed in /in/rvFmg on line 9 Work iconv_strlen: Notice: iconv_strlen(): Detected an illegal character in input string in /in/rvFmg on line 11

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:
41.07 ms | 402 KiB | 8 Q