3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $matches = array(); $pattern = 'http\:\/\/www\.kinguin\.dev\/index\.php\/glacier77\/cms_wysiwyg\/directive\/___directive\/([a-zA-Z0-9,_-]+)\/key\/[^\/]+\/'; $content = '<p><span><img title="bbb" src="http://www.kinguin.dev/index.php/glacier77/cms_wysiwyg/directive/___directive/e3ttZWRpYSB1cmw9Ind5c2l3eWcvYm94LXRoZS1lbGRlci1zY3JvbGxzLXYtc2t5cmltLWRyYWdvbmJvcm4tcGNlLmpwZyJ9fQ,,/key/6cf30d5a419b39ae8e39897ccb6c5300/" alt="aaa" />Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris magna ante, dictum et ante gravida, rutrum suscipit massa. Etiam ac metus quis dolor hendrerit gravida. Donec quis lorem non nulla malesuada tincidunt. Nunc malesuada erat velit, eget aliquet arcu laoreet quis.</span></p> <p><iframe src="http://www.youtube.com/embed/c5xL9Unxphs" frameborder="0" width="520" height="315"></iframe></p>"http://www.kinguin.dev/index.php/glacier77/cms_wysiwyg/directive/___directive/e3ttZWRpYSB1cmw9Ind5c2l3eWcvYm94LXRoZS1lbGRlci1zY3JvbGxzLXYtc2t5cmltLWRyYWdvbmJvcm4tcGNlLmpwZyJ9f---/key/6cf30d5a419b39ae8e39897ccb6c53111/" '; preg_match_all($pattern, $content, $matches); var_dump($matches);
Output for 4.3.11 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_match_all(): Delimiter must not be alphanumeric or backslash in /in/JsDFl on line 7 array(0) { }
Output for 4.3.0 - 4.3.10, hhvm-3.10.0 - 3.12.0
Warning: Delimiter must not be alphanumeric or backslash in /in/JsDFl on line 7 array(0) { }