3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'he said "hello worLd"', 'he sAId "καλημέρα ΚΌΣΜΕ" to me', "Ryan's shirts are verY large", ]; var_export( preg_replace_callback('/[^"]+/', fn($m) => mb_convert_case($m[0], MB_CASE_TITLE, "UTF-8"), $strings) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 'He Said "Hello World"', 1 => 'He Said "Καλημέρα Κόσμε" To Me', 2 => 'Ryan\'s Shirts Are Very Large', )

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