3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Prosper Mérimée, как дела?'; $encoding = mb_detect_encoding($text); echo iconv($encoding, 'CP1251', $text) . "\r\n"; echo iconv($encoding, 'CP1251//TRANSLITE', $text) . "\r\n"; echo iconv($encoding, 'CP1251//IGNORE', $text) . "\r\n"; echo iconv($encoding, 'CP1251//TRANSLITE//IGNORE', $text) . "\r\n"; echo iconv($encoding, 'CP1251//IGNORE//TRANSLITE', $text) . "\r\n";
Output for git.master, git.master_jit, rfc.property-hooks
Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "CP1251" is not allowed in /in/jUhMJ on line 6 Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "CP1251//TRANSLITE" is not allowed in /in/jUhMJ on line 7 Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "CP1251//IGNORE" is not allowed in /in/jUhMJ on line 8 Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "CP1251//TRANSLITE//IGNORE" is not allowed in /in/jUhMJ on line 9 Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "CP1251//IGNORE//TRANSLITE" is not allowed in /in/jUhMJ 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:
91.86 ms | 407 KiB | 5 Q