3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = str_replace("{","", $sentence); $sentence = str_replace("}","", $sentence); $sentence_iter = explode("|", $sentence); $key_upper = "{"; for ($iMatch = 0; iMatch < count($sentence_iter); ++$iMatch) { $key_upper = $key_upper ."|". preg_replace_callback('/(?<=\s|^)[a-z]/', function($match) { return strtoupper($match[0]); }, $sentence_iter[$iMatch]); } $key_upper .= "}"; $key_upper = str_replace("{|", "{", $key_upper); echo $key_upper;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $sentence in /in/1cXXS on line 2 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /in/1cXXS on line 2 Fatal error: Uncaught Error: Undefined constant "iMatch" in /in/1cXXS:7 Stack trace: #0 {main} thrown in /in/1cXXS on line 7
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:
39.7 ms | 401 KiB | 8 Q