3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
Array ( [0] => [1] => description [2] => Description test )
Output for hhvm-3.13.2

Process exited with code 137.