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( "/[^\x{00a0}-\x{ffff}\x]+/u" , '۱۲۳۴۵۶۷۸۹۰' );
based on cXqPS
Output for 5.3.21 - 5.4.45, 5.5.17, 5.6.0 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.11
Output for 5.5.0 - 5.5.16, 5.5.18 - 5.5.38
Fatal error: Call to undefined function iconv() in /in/sWI2G on line 3
Process exited with code 255.