<?php $char = '🌠'; for ( $i=0; $i<strlen( $char);$i++ ) { echo $i . ' %'.dechex(ord($char[$i]))."\n"; } ?>
Standard input is empty
0 %f0 1 %9f 2 %8c 3 %a0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!