3v4l.org

run code in 300+ PHP versions simultaneously
<?php $geo = 'New york, Ny columbia, sc charleston washington, DC BISMARCK, ND'; $geo = explode(PHP_EOL, $geo); foreach ($geo as $str) { // chop $str = explode(',', $str); // fix echo (!empty($str[0]) ? ucwords(strtolower(trim($str[0]))) : null). (!empty($str[1]) ? ', '.strtoupper(trim($str[1])) : null).PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
New York, NY Columbia, SC Charleston Washington, DC Bismarck, ND

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