3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $msg = ' ERROR: ebooks/epub-filename-155-430ee8a0ce.epub/Chapter1106.html(19,90): attribute "name" not allowed here; expected attribute "accesskey", "charset", "class", "coords", "dir", "hreflang", "id", "lang", "rel", "rev", "shape", "style", "tabindex", "target", "title", "type" or "xml:lang"'; list($file_details,$message) = explode('):',$msg,2); $file_details_split = explode('.html(',$file_details); preg_match_all('/(ebooks\/(.+?).html)|(\(\d+,\d+\))|(\)\:(.*?))$/', $file_details,$msg_arr); print_r($msg_arr); exit;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( [0] => ebooks/epub-filename-155-430ee8a0ce.epub/Chapter1106.html ) [1] => Array ( [0] => ebooks/epub-filename-155-430ee8a0ce.epub/Chapter1106.html ) [2] => Array ( [0] => epub-filename-155-430ee8a0ce.epub/Chapter1106 ) [3] => Array ( [0] => ) [4] => Array ( [0] => ) [5] => Array ( [0] => ) )