3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "รป"; echo iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $string); // output: [nothing, and you get a notice] echo iconv('UTF-8', 'ISO-8859-1//IGNORE', $string); // output: ABBSBD echo iconv('UTF-8', 'ISO-8859-1//TRANSLIT//IGNORE', $string); // output: ABBASABAD // Yay! That's what I wanted! ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "ISO-8859-1//TRANSLIT" is not allowed in /in/RS7MG on line 4 Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "ISO-8859-1//IGNORE" is not allowed in /in/RS7MG on line 7 Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "ISO-8859-1//TRANSLIT//IGNORE" is not allowed in /in/RS7MG on line 10

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