3v4l.org

run code in 300+ PHP versions simultaneously
<?php $percent_formatter = NumberFormatter::create('de_DE', NumberFormatter::PERCENT); $value1 = $percent_formatter->format('0.5'); $value2 = "50\u{A0}%"; var_dump($value1==$value2);

preferences:
24.47 ms | 404 KiB | 5 Q