3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "This is a test It's a boring test."; $a = nl2br($a); $a = str_replace( array(':)', ':D'), array('Emoticon Smile', 'Emoticon colon D'), $a ); echo $a;

preferences:
39.41 ms | 402 KiB | 5 Q