3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expr = '#<meta\s+name\s*=\s*([\'"])http_equiv\1\s.*?content\s*=\s*([\'"])text/html\s*;\s*charset\s*=\s*((?:(?!,|>|\2).)+)#i'; $subject = <<<HTML <HTML> <!-- $Revision: 317718 $ --> <HEAD> <TITLE>PHP Manual</TITLE> <META NAME="HTTP_EQUIV" CONTENT="text/html; charset=UTF-8"> <LINK REL="STYLESHEET" HREF="style.css"> </HEAD> HTML; preg_match($expr, $subject, $matches); var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $Revision in /in/SiqJ9 on line 6 array(4) { [0]=> string(57) "<META NAME="HTTP_EQUIV" CONTENT="text/html; charset=UTF-8" [1]=> string(1) """ [2]=> string(1) """ [3]=> string(5) "UTF-8" }

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:
42.33 ms | 401 KiB | 8 Q