3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match_all('/@@(.{3,5})@@/', 'abc@@def@@ghi@@jklmnop@@qrst@@uvw@@xyz', $matches); var_dump($matches);
based on MiXfr
Output for 4.3.0 - 7.2.0
array(2) { [0]=> array(2) { [0]=> string(7) "@@def@@" [1]=> string(8) "@@qrst@@" } [1]=> array(2) { [0]=> string(3) "def" [1]=> string(4) "qrst" } }