3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function is_urlEncoded($string){ $test_string = $string; while(urldecode($test_string) != $test_string){ $test_string = urldecode($test_string); } return (urlencode($test_string) == $string)?True:False; } $x ="Océ"; if(is_urlEncoded($x)){ echo "ist encoded"; } else { echo "ist nicht encoded"; }
Output for 4.3.0 - 7.2.0
ist nicht encoded