3v4l.org

run code in 300+ PHP versions simultaneously
<?php\ $rss_fandango = file_get_contents('http://www.fandango.com/rss/top10boxoffice.rss'); $xml_fandango = simplexml_load_string($rss_fandango,null, LIBXML_NOCDATA); $data_fan = $xml_fandango->channel->item; $title = $item->title; $pos = strpos($title,'$'); $final = substr($title ,3 , strpos($title,'$') - 3); $earns = substr($title, $pos, -1); echo $pos . "<br/>"; echo $final . "<br/>"; echo $earns . "<br/>";
Output for git.master, git.master_jit, rfc.property-hooks
<?php\ $rss_fandango = file_get_contents('http://www.fandango.com/rss/top10boxoffice.rss'); $xml_fandango = simplexml_load_string($rss_fandango,null, LIBXML_NOCDATA); $data_fan = $xml_fandango->channel->item; $title = $item->title; $pos = strpos($title,'$'); $final = substr($title ,3 , strpos($title,'$') - 3); $earns = substr($title, $pos, -1); echo $pos . "<br/>"; echo $final . "<br/>"; echo $earns . "<br/>";

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:
36.87 ms | 402 KiB | 8 Q