3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = iconv("utf-8", "cp1251", "/-[а-я]+=/"); $rei = iconv("utf-8", "cp1251", "/-[а-я]+=/i"); $RE = iconv("utf-8", "cp1251", "/-[а-яА-Я]+=/"); $str = iconv("utf-8", "cp1251", "-Превед="); var_dump(mb_convert_encoding("-Превед=", "cp1251", "utf-8")); var_dump($str); var_dump(mb_detect_encoding($str, "auto", true)); var_dump($re, preg_match($re, $str)); var_dump($rei, preg_match($rei, $str)); var_dump($RE, preg_match($RE, $str));
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/dnV8b on line 2 Warning: iconv(): Wrong encoding, conversion from "utf-8" to "cp1251" is not allowed in /in/dnV8b on line 3 Warning: iconv(): Wrong encoding, conversion from "utf-8" to "cp1251" is not allowed in /in/dnV8b on line 4 Warning: iconv(): Wrong encoding, conversion from "utf-8" to "cp1251" is not allowed in /in/dnV8b on line 5 string(8) "-������=" bool(false) string(5) "ASCII" Warning: preg_match(): Empty regular expression in /in/dnV8b on line 10 bool(false) bool(false) Warning: preg_match(): Empty regular expression in /in/dnV8b on line 11 bool(false) bool(false) Warning: preg_match(): Empty regular expression in /in/dnV8b on line 12 bool(false) bool(false)

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:
41.32 ms | 403 KiB | 8 Q