3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo _urlPrintXML(_urlSetPriority(_urlSetLastModDate(_urlNew('test.ru'), '14 25 6'), 20)); function &_urlNew($url) { return [ 'url' => 'http://' . $url, 'data' => []]; } function &_urlSetPriority(&$objUrl, $priority) { $objUrl['data']['priority'] = $priority; return $objUrl; } function _urlGetPriority($objUrl) { return isset($objUrl['data']['priority']) ? $objUrl['data']['priority'] : false; } function &_urlSetLastModDate(&$objUrl, $lastmod) { $objUrl['data']['lastmod'] = $lastmod; return $objUrl; } function _urlGetLastModDate(&$objUrl) { return isset($objUrl['data']['lastmod']) ? $objUrl['data']['lastmod'] : false; } function _urlPrintXML($objUrl) { $content = '<loc>' . $objUrl['url'] . '</loc>'; foreach ($objUrl['data'] as $propertyName => $propertyValue) { $content .= '<' . $propertyName . '>' . $propertyValue . '<' . $propertyName . '>'; } }
Output for git.master, git.master_jit, rfc.property-hooks
Notice: Only variable references should be returned by reference in /in/D1dEH on line 7

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