3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testValue = 'mdpre'; $baseValue = 'fdsdfsmdprefid'; var_dump(preg_match('/' . $testValue . '$/', $baseValue));

preferences:
51.79 ms | 402 KiB | 5 Q