3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = '<function controlid="foobar"><create_potransaction><transactiontype>Item Receipt</transactiontype><datecreated><year>2016</year><month>12</month><day>07</day></datecreated><vendorid>49041</vendorid><documentno>IR-400206</documentno><datedue><year>2016</year><month>12</month><day>09</day></datedue><returnto><contactname>Johnny on the Spot Porta Potties LLC - Lexington, IL</contactname></returnto><payto><contactname>Johnny on the Spot Porta Potties LLC - Lexington, IL</contactname></payto><customfields><customfield><customfieldname>audit_notes</customfieldname><customfieldvalue>Site Add: 1301 South Main Street, Type: Construction Standard , Quantity: 2 – On Call, hStdChg: $70, hDeliv: $ 0, hRemove: 0, hBilling: 28 Days, hXtraServ: 0, hOther: 0, hFuel%: 0, hFuel$: 0, hTax%: 0, cStdChg: $155, cDeliv: $ 0, cRemove: 0, cBilling: 28 Days, cXtraServ: 0, cOther: 0, cTax%: 0, PO/Job Number: ----------- Profit Margin of $170 or 54.8%</customfieldvalue></customfield></customfields><potransitems><potransitem><itemid>50110</itemid><itemdesc>Normal, IL 61761'; $endash = html_entity_decode('\u0096', ENT_COMPAT, 'UTF-8'); $str = str_replace(chr(150), "-", $var);//&#194;&#150; $str = str_replace(chr(194), "-", $str);//&#194;&#150; $string = filter_var($var, FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_ENCODE_HIGH); var_dump(is_numeric(-5)); //echo $str;
Output for git.master, git.master_jit, rfc.property-hooks
bool(true)

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