3v4l.org

run code in 300+ PHP versions simultaneously
<? $xml = simplexml_load_file(‘http://stocklamp.tumblr.com/api/read/xml’); $posts = $xml->xpath(“/tumblr/posts/post[@type=’regular’]”); foreach($posts as $post) {?> <?echo $post[‘id’];?> <?echo $post[‘url-with-slug’];?>”> <?echo $post->{‘regular-title’};?> <?echo $post->{‘regular-body’};?> <?echo date(“jS D M, H:i”,strtotime($post[‘date’]));?> <?}?>

This is an error 404

There are `0` results


preferences:
140.66 ms | 1399 KiB | 7 Q