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> -- " . ${1} . "</p>",$matches); var_dump($matches); }

preferences:
50.39 ms | 402 KiB | 5 Q