3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rss = simplexml_load_file('http://on-ze.com/feed'); echo '<ul>'; foreach($rss->channel->item as $item){ $title = $item->title; $date = date("Y年 n月 j日", strtotime($item->pubDate)); $link = $item->link; $description = mb_strimwidth (strip_tags($item->description), 0 , 110, "…Read More", "utf-8"); ?> <li><a href="<?php echo $link; ?>" target="_blank"> <span class="date"><?php echo $date; ?></span> <span class="title"><?php echo $title; ?></span> <span class="text"><?php echo $description; ?></span> </a></li> <?php } echo '</ul>'; ?>
Output for git.master, git.master_jit
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for on-ze.com failed: System error in /in/7uoS8 on line 2 Warning: simplexml_load_file(http://on-ze.com/feed): Failed to open stream: php_network_getaddresses: getaddrinfo for on-ze.com failed: System error in /in/7uoS8 on line 2 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://on-ze.com/feed" in /in/7uoS8 on line 2 <ul> Warning: Attempt to read property "channel" on bool in /in/7uoS8 on line 4 Warning: Attempt to read property "item" on null in /in/7uoS8 on line 4 Warning: foreach() argument must be of type array|object, null given in /in/7uoS8 on line 4 </ul>
Output for rfc.property-hooks
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for on-ze.com failed: System error in /in/7uoS8 on line 2 Warning: simplexml_load_file(http://on-ze.com/feed): Failed to open stream: php_network_getaddresses: getaddrinfo for on-ze.com failed: System error in /in/7uoS8 on line 2 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://on-ze.com/feed" in /in/7uoS8 on line 2 <ul> Warning: Attempt to read property "channel" on false in /in/7uoS8 on line 4 Warning: Attempt to read property "item" on null in /in/7uoS8 on line 4 Warning: foreach() argument must be of type array|object, null given in /in/7uoS8 on line 4 </ul>

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