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(); for ($i=1, $l=sizeof($arr); $i<$l; $i+=2) { echo trim($arr[$i]); } //print_r($arr);
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
description
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/M4OY9 on line 10
Process exited with code 255.