3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, 'ru_RU.CP1251'); $str = "Оригинальный картридж HP C9700A (121A) (черный)"; $str = trim(str_ireplace("Оригинальный", "", $str)); $str = iconv("UTF-8", "Windows-1251", $str); $str = ucfirst($str); $str = iconv("Windows-1251", "UTF-8", $str); echo $str;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "Windows-1251" is not allowed in /in/KsonO on line 9 Warning: iconv(): Wrong encoding, conversion from "Windows-1251" to "UTF-8" is not allowed in /in/KsonO 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:
61.3 ms | 401 KiB | 8 Q