3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strs = ['%%%[[http://hello | world]] **bold**%%%', ' %%%[[http://hello | world]] **bold**%%%']; foreach ($strs as $str) { var_dump(preg_match('/^(\s{2,}).+/', $str)); var_dump(preg_match('/^\s*(```)/', $str)); var_dump(preg_match('/^\s*(```)(.*)(```)\s*$/', $str)); var_dump(preg_match('/```\s*$/', $str)); var_dump(preg_match('/^\s{2,}/', $str)); echo "--------------------\n"; }

preferences:
24.28 ms | 405 KiB | 5 Q