3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dsn = 'git+http://github.com/phpDocumentor/phpDocumentor2;branch=develop'; $dsnParts = implode(';', $dsn); $location = $dsnParts[0]; unset($dsnParts[0]); $locationParts = parse_url($location); $options = array(); foreach($dsnParts as $part) { $option = explode('=', $part); $options[$option[0]] = $option[1]; } var_dump($locationParts); var_dump($options);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /in/Rj3Br:4 Stack trace: #0 /in/Rj3Br(4): implode(';', 'git+http://gith...') #1 {main} thrown in /in/Rj3Br on line 4
Process exited with code 255.

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