3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parsed_url = parse_url($url = "http://en.wikipedia.org/w/api.php?action=query&prop=extracts|info&titles=**VARIABLE**&format=json&explaintext&redirects&inprop=url&indexpageids"); $params = []; parse_str($parsed_url['query'], $params); $title = 'Some example';// $data->query->pages->$pageid->title; $params['titles'] = $title; $parsed_url['query'] = http_build_query($params); $url = $parsed_url['scheme'] . '://' . $parsed_url['host'] . $parsed_url['path']. '?' . $parsed_url['query']; echo $url;
Output for git.master, git.master_jit, rfc.property-hooks
http://en.wikipedia.org/w/api.php?action=query&prop=extracts%7Cinfo&titles=Some+example&format=json&explaintext=&redirects=&inprop=url&indexpageids=

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:
13.38 ms | 405 KiB | 5 Q