3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = ' <!doctype html> <!--[if lt IE 7]> <html xmlns="http://www.w3.org/1999/xhtml" class="no-js ie6 oldie" xml:lang="en" lang="en"> <![endif]--> <!--[if IE 7]> <html xmlns="http://www.w3.org/1999/xhtml" class="no-js ie7 oldie" xml:lang="en" lang="en"> <![endif]--> <!--[if IE 8]> <html xmlns="http://www.w3.org/1999/xhtml" class="no-js ie8 oldie" xml:lang="en" lang="en"> <![endif]--> <!-- Consider adding an manifest.appcache: h5bp.com/d/Offline --> <!--[if gt IE 8]><!--> <html xmlns="http://www.w3.org/1999/xhtml" class="no-js" xml:lang="en" lang="en"> <body> <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ player = $("#jquery_jplayer_1").jPlayer({ swfPath: "/scripts/jplayer/jplayer", solution: "html, flash", wmode: "window", useStateClassSkin: true, autoBlur: false, smoothPlayBar: true, keyEnabled: true, remainingDuration: true, toggleDuration: true, ready: function (event) { $(this).jPlayer("setMedia", { title: "", mp3: "http://example.mp3", }); } }); }); //]]> </script> </body></html>'; $Pattern = '/((https?:\/\/)?(\w+?\.)+?(\w+?\/)+\w+?.(mp3|ogg))/im'; preg_match_all($Pattern,htmlentities($html),$Matches); var_dump($Matches);
Output for git.master, git.master_jit, rfc.property-hooks
array(6) { [0]=> array(0) { } [1]=> array(0) { } [2]=> array(0) { } [3]=> array(0) { } [4]=> array(0) { } [5]=> array(0) { } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
35.62 ms | 405 KiB | 5 Q