3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches=null; $fortune = 'The rain in Spain<br> -- whoknows?'; if (strpos($fortune,"--") !== FALSE) { preg_replace("/(--[ a-zA-Z]+)/m","<p style='text-align:right'>$1</p>",$matches); var_dump($matches); }

preferences:
23.91 ms | 406 KiB | 5 Q