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($str); mb_detect_encoding($str); 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/IoQnq on line 2 Warning: iconv(): Wrong encoding, conversion from "utf-8" to "cp1251" is not allowed in /in/IoQnq on line 3 Warning: iconv(): Wrong encoding, conversion from "utf-8" to "cp1251" is not allowed in /in/IoQnq on line 4 Warning: iconv(): Wrong encoding, conversion from "utf-8" to "cp1251" is not allowed in /in/IoQnq on line 5 bool(false) Warning: preg_match(): Empty regular expression in /in/IoQnq on line 9 bool(false) bool(false) Warning: preg_match(): Empty regular expression in /in/IoQnq on line 10 bool(false) bool(false) Warning: preg_match(): Empty regular expression in /in/IoQnq on line 11 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:
42.39 ms | 402 KiB | 8 Q