3v4l.org

run code in 300+ PHP versions simultaneously
<?php $item = mb_convert_encoding( '¨l', 'ISO-8859-1', 'UTF-8' ); $encoding = 'UTF-8'; $ret = ''; $max = mb_strlen($item ?? '', $encoding); for ($i = 0; $i < $max; $i++) { $char = mb_substr($item, $i, 1, $encoding); $up = mb_strtoupper($char, $encoding); $low = mb_strtolower($char, $encoding); $ret .= ($up != $low) ? '[' . $up . $low . ']' : $char; } var_dump(utf8_encode($ret));
Output for git.master_jit, git.master
Deprecated: Function utf8_encode() is deprecated since 8.2, visit the php.net documentation for various alternatives in /in/d3U1V on line 19 string(5) "?[Ll]"
Output for rfc.property-hooks
Deprecated: Function utf8_encode() is deprecated in /in/d3U1V on line 19 string(5) "?[Ll]"

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:
30.92 ms | 406 KiB | 5 Q