3v4l.org

run code in 300+ PHP versions simultaneously
<html><head><title>Online PHP Script Execution</title></head><body><?php/*Template Name: Update events template*/?><?phptry{ $client = new SoapClient("http://www.ernact.eu/webservices/Events.asmx?wsdl");} catch (Exception $e) { echo "<h2>Exception Error!</h2>"; echo $e->getMessage(); } $result = $client->GetEvents(array('ProjectID' => '81'));$icsOut = "BEGIN:VCALENDARPRODID:-//bobbin v0.1//NONSGML iCal Writer//ENVERSION:2.0CALSCALE:GREGORIANMETHOD:PUBLISH";$dateStart = new DateTime('2000-01-01');$dateStart->format('Y-m-d');foreach($result->GetEventsResult->ErnactEvent as $item){$icsOut .= "BEGIN:VEVENTDTSTART:".date('Ymd', strtotime(str_replace('/','-',$item->StartDate)))."T".date('His', strtotime($item->StartTime))."ZDTEND:".date('Ymd', strtotime(str_replace('/','-',$item->FinishDate)))."T".date('His', strtotime($item->FinishTime))."ZDTSTAMP:" . date('Ymd').'T'. gmdate('His') . "ZUID:" . md5(uniqid(mt_rand(), true)) . "@create-nwe.euDESCRIPTION:".$item->Description."SUMMARY:".$item->Title."LOCATION:".$item->Location."CONTACT:".$item->ContactName."END:VEVENT";// Create post object/*$create_event_content = $item->Description . '<br><br><a href="'.$item->Link.'" title="View more details about '.$item->Title.'" target="_blank">'.$item->Link.'</a>';$my_post = array( 'post_title' => $item->Title, 'post_content' => $create_event_content, 'post_type' => 'events', 'post_status' => 'publish', 'post_author' => 1);print_r($my_post);// Insert the post into the database$create_event_post_id = wp_insert_post( $my_post );update_post_meta( $create_event_post_id, 'date', date('m/d/Y', strtotime($item->StartDate)) );*/}$icsOut .= "END:VCALENDAR";echo $icsOut;?></body></html>

This is an error 404

There are `0` results


preferences:
140.96 ms | 1399 KiB | 7 Q