3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://medium.com/on-coding/5963ca9d6499'; $params = [ 'type' => '11', 'PPSX' => 'Pass', 'NewUser' => '1', 'LoginOptions' => '1', 'i3' => '71126', 'm1' => '1366', 'm2' => '768', 'm3' => '0', 'i12' => '1', 'i17' => '0', 'i18' => '__Login_Host|1,', ]; if (array_keys($params)[0] !== 0) { $tmp = []; foreach ($params as $key => $value) { $tmp[] = "{$key}={$value}"; } $params = $tmp; unset($tmp); } if (substr($url, -1) !== '?') { if (substr($url, -1) !== '/') { $url .= '/'; } $url .= '?'; } print $url .= implode('&', $params);
Output for git.master, git.master_jit, rfc.property-hooks
https://medium.com/on-coding/5963ca9d6499/?type=11&PPSX=Pass&NewUser=1&LoginOptions=1&i3=71126&m1=1366&m2=768&m3=0&i12=1&i17=0&i18=__Login_Host|1,

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:
43.91 ms | 401 KiB | 8 Q