3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encodings = mb_list_encodings(); var_dump(count($encodings)); foreach ($encodings as $encoding) { foreach (["\r","\n"] as $string) { if (strlen($string) !== mb_strlen($string, $encoding)) { var_dump([$encoding, ord($string)]); } } }
Output for git.master, git.master_jit, rfc.property-hooks
int(78) Deprecated: mb_strlen(): Handling Base64 via mbstring is deprecated; use base64_encode/base64_decode instead in /in/UMIlJ on line 8 array(2) { [0]=> string(6) "BASE64" [1]=> int(13) } array(2) { [0]=> string(6) "BASE64" [1]=> int(10) } Deprecated: mb_strlen(): Handling Uuencode via mbstring is deprecated; use convert_uuencode/convert_uudecode instead in /in/UMIlJ on line 8 Deprecated: mb_strlen(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /in/UMIlJ on line 8 Deprecated: mb_strlen(): Handling QPrint via mbstring is deprecated; use quoted_printable_encode/quoted_printable_decode instead in /in/UMIlJ on line 8 array(2) { [0]=> string(5) "UCS-4" [1]=> int(13) } array(2) { [0]=> string(5) "UCS-4" [1]=> int(10) } array(2) { [0]=> string(7) "UCS-4BE" [1]=> int(13) } array(2) { [0]=> string(7) "UCS-4BE" [1]=> int(10) } array(2) { [0]=> string(7) "UCS-4LE" [1]=> int(13) } array(2) { [0]=> string(7) "UCS-4LE" [1]=> int(10) } array(2) { [0]=> string(5) "UCS-2" [1]=> int(13) } array(2) { [0]=> string(5) "UCS-2" [1]=> int(10) } array(2) { [0]=> string(7) "UCS-2BE" [1]=> int(13) } array(2) { [0]=> string(7) "UCS-2BE" [1]=> int(10) } array(2) { [0]=> string(7) "UCS-2LE" [1]=> int(13) } array(2) { [0]=> string(7) "UCS-2LE" [1]=> int(10) } array(2) { [0]=> string(6) "UTF-32" [1]=> int(13) } array(2) { [0]=> string(6) "UTF-32" [1]=> int(10) } array(2) { [0]=> string(8) "UTF-32BE" [1]=> int(13) } array(2) { [0]=> string(8) "UTF-32BE" [1]=> int(10) } array(2) { [0]=> string(8) "UTF-32LE" [1]=> int(13) } array(2) { [0]=> string(8) "UTF-32LE" [1]=> int(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:
61.98 ms | 405 KiB | 8 Q