3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $customData = "===== description ===== Description test"; $arr = preg_split('#={5}\s+([^=]+)\s+={5}#', $customData, -1, PREG_SPLIT_DELIM_CAPTURE); $data = array(); print_r($arr);
Output for 4.3.0 - 7.1.7
Array ( [0] => [1] => description [2] => Description test )