3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT {swal title:='<span style="font-size: 16px;">INFORMATION</span>',html:='<span style="font-size: 14px;">Mask and sanitary pass are</span><b><span style="font-size: 14px; color: #FF0000;"> mandatory for all adults and kids from 12 to 17 to....</span></b><br /><br /><b>Thanks!</b>',icon:='info',confirmButtonText:='OK',iconColor:='#FF0000'}{/swal} TEXT; echo preg_replace_callback( "~^{swal |\G(?!^)(?:(,?[a-z]+:=')(.*?)(')|}{/swal}(*SKIP))~mi", function($m) { return count($m) === 4 ? $m[1] . htmlentities($m[2]) . $m[3] : $m[0]; }, $text );
Output for git.master, git.master_jit, rfc.property-hooks
{swal title:='&lt;span style=&quot;font-size: 16px;&quot;&gt;INFORMATION&lt;/span&gt;',html:='&lt;span style=&quot;font-size: 14px;&quot;&gt;Mask and sanitary pass are&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14px; color: #FF0000;&quot;&gt; mandatory for all adults and kids from 12 to 17 to....&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Thanks!&lt;/b&gt;',icon:='info',confirmButtonText:='OK',iconColor:='#FF0000'}{/swal}

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:
55.95 ms | 406 KiB | 5 Q