3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // example code $content = 'dasdasdas d asdas dasdas dasd [gallery ids="2727,2726,2721"] dasd as ads'; /*$ids = substr(strstr($content, '[gallery ids='), 14); $ids = substr($ids, 0, strpos( $ids, '"]')); $ids = explode(',', $ids);*/ $ids = preg_match($ids, ?<=\[gallery ids")(.*\n?)(?="]); echo print_r($ids);
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '?' in /in/RveM6 on line 10
Process exited with code 255.