3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<h2>Title of post</h2> 1 category <strong>task 1</strong> 1 category <strong>task 2</strong> 1 category <strong>task 3</strong>&nbsp; '; preg_match_all('/\<\/h2\>(\w+?)\<strong\>/', $html, $result); print_r($result);

preferences:
52.24 ms | 402 KiB | 5 Q