3v4l.org

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

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.33 ms | 401 KiB | 8 Q