3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url=""; $url = iconv(/*in*/"cp1251", /*out*/"UTF-8", $url); /*if (preg_match('/^(?:(?:https?):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/i', $url)) { }*/ preg_match( "/[a-z\x{00a1}-\x{FFFF}\x]+/u" , '۱۲۳۴۵۶۷۸۹۰' );
based on eR1Ef
Output for 5.3.21 - 5.5.34, 5.6.8 - 5.6.20, 5.6.28 - 7.0.5, 7.0.20 - 7.2.0
Output for 7.0.6
Fatal error: Uncaught Error: Call to undefined function iconv() in /in/FdWMn:3 Stack trace: #0 {main} thrown in /in/FdWMn on line 3
Process exited with code 255.
Output for 5.5.35, 5.6.21
Fatal error: Call to undefined function iconv() in /in/FdWMn on line 3
Process exited with code 255.