3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = "the national"; $string2 = "nationals"; var_dump(preg_match("/^the ?/", $string1)); var_sump(preg_match("/^the ?/", $string2)); ?>

preferences:
37.51 ms | 402 KiB | 5 Q