3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
ist nicht encoded
Output for hhvm-3.10.0

Process exited with code 153.