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:
22.58 ms | 402 KiB | 5 Q