fork download
  1. <?php
  2.  
  3. $strings = array(
  4. '<a href="´╗┐http://www.example.com">a</a>',
  5. '<a href="http://www.example.com">a</a>'
  6. );
  7.  
  8. dump($strings[0]);
  9. echo "\n";
  10. dump($strings[1]);
  11.  
  12. function dump($str)
  13. {
  14. foreach (str_split($str) as $c) {
  15. echo dechex(ord($c)) . '-';
  16. }
  17. }
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
3c-61-20-68-72-65-66-3d-22-ef-bb-bf-68-74-74-70-3a-2f-2f-77-77-77-2e-65-78-61-6d-70-6c-65-2e-63-6f-6d-22-3e-61-3c-2f-61-3e-
3c-61-20-68-72-65-66-3d-22-68-74-74-70-3a-2f-2f-77-77-77-2e-65-78-61-6d-70-6c-65-2e-63-6f-6d-22-3e-61-3c-2f-61-3e-