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 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0 - 8.5.1
array(6) { [0]=> array(0) { } [1]=> array(0) { } [2]=> array(0) { } [3]=> array(0) { } [4]=> array(0) { } [5]=> array(0) { } }
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.

preferences:
166.82 ms | 407 KiB | 5 Q