3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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);
based on B43s0
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.28 - 7.3.0rc3
Array ( [0] => Array ( ) [1] => Array ( ) )