3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( bin2hex( html_entity_decode( htmlspecialchars( "\xc0\x80", ENT_NOQUOTES, 'UTF-8' ) ) ) ); var_dump( bin2hex( html_entity_decode( htmlspecialchars( "\xc2", ENT_NOQUOTES, 'UTF-8' ) ) ) ); var_dump( bin2hex( html_entity_decode( htmlspecialchars( "\xe0\x80\x80", ENT_NOQUOTES, 'UTF-8' ) ) ) ); var_dump( bin2hex( html_entity_decode( htmlspecialchars( "\xf4\x90\x80\x80", ENT_NOQUOTES, 'UTF-8' ) ) ) );

preferences:
40.77 ms | 402 KiB | 5 Q