<?php
$linha1 = "\r\n";
$linha2 = chr( 0x0d ) . chr( 0x0a );
if ( $linha1 === $linha2 ) {
echo 'identicas';
} else {
echo 'diferentes';
}
PD9waHAKICAgJGxpbmhhMSA9ICJcclxuIjsKICAgJGxpbmhhMiA9IGNociggMHgwZCApIC4gY2hyKCAweDBhICk7CiAgIAogICBpZiAoICRsaW5oYTEgPT09ICRsaW5oYTIgICkgewogICAJZWNobyAnaWRlbnRpY2FzJzsKICAgfSBlbHNlIHsKICAgCWVjaG8gJ2RpZmVyZW50ZXMnOwogICB9Cg==