3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encodings = [ 'BASE64', 'HTML-ENTITIES', 'Quoted-Printable', 'UTF-16', 'UTF-16BE', 'UTF-16LE', 'UTF-7', 'UTF7-IMAP', 'JIS', 'ISO-2022-JP', 'ISO-2022-JP-MS', 'GB18030', 'HZ', 'ISO-2022-KR', 'ISO-2022-JP-2004', 'ISO-2022-JP-MOBILE#KDDI', 'CP50220', 'CP50221', 'CP50222', ]; foreach($encodings as $encoding) { var_dump(mb_strcut('???', 0, 2, $encoding)); } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: mb_strcut(): Handling Base64 via mbstring is deprecated; use base64_encode/base64_decode instead in /in/4m5X4 on line 25 string(0) "" Deprecated: mb_strcut(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /in/4m5X4 on line 25 string(2) "??" Deprecated: mb_strcut(): Handling QPrint via mbstring is deprecated; use quoted_printable_encode/quoted_printable_decode instead in /in/4m5X4 on line 25 string(2) "??" string(2) "??" string(2) "??" string(2) "??" string(2) "??" string(2) "??" string(2) "??" string(2) "??" string(2) "??" string(2) "??" string(2) "??" string(0) "" string(2) "??" string(2) "??" string(2) "??" string(2) "??" string(2) "??"

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:
100.67 ms | 407 KiB | 5 Q