3v4l.org

run code in 300+ PHP versions simultaneously
<?php $h = 'U+00A0'; echo hexdec($h) . PHP_EOL; $h = '0x00A0'; echo hexdec($h) . PHP_EOL; $h = '00A0'; echo hexdec($h) . PHP_EOL;

preferences:
35.4 ms | 458 KiB | 5 Q