3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $firstWordExamples = array( pgettext('dng', 'Super'), pgettext('dng', 'Really'), pgettext('dng', 'Very'), pgettext('dng', 'Totally'), pgettext('dng', 'Extremely'), pgettext('dng', 'Rather'), pgettext('dng', 'Remarkably'), pgettext('dng', 'Frankly'), pgettext('dng', 'Dreadfully'), pgettext('dng', 'Awfully'), pgettext('dng', 'Quite'), pgettext('dng', 'Wicked'), pgettext('dng', 'Incredibly'), pgettext('dng', 'Monstrously'), pgettext('dng', 'Truly'), pgettext('dng', 'Completely'), pgettext('dng', 'Absolutely'), pgettext('dng', 'Cheerfully'), pgettext('dng', 'Excitedly'), pgettext('dng', 'Sweetly'), pgettext('dng', 'Gently'), pgettext('dng', 'Crazy'), pgettext('dng', 'Loudly'), pgettext('dng', 'Obviously'), pgettext('dng', 'Covertly'), pgettext('dng', 'Secretly'), pgettext('dng', 'Boldly'), pgettext('dng', 'Perfectly'), pgettext('dng', 'So'), pgettext('dng', 'Merrily'), pgettext('dng', 'Certainly'), pgettext('dng', 'Creatively'), pgettext('dng', 'Royally'), pgettext('dng', 'Passionately'), pgettext('dng', 'Simply'), pgettext('dng', 'Beautifully'), pgettext('dng', 'Happily'), pgettext('dng', 'Shamelessly'), pgettext('dng', 'Definitely'), pgettext('dng', 'Significantly'), pgettext('dng', 'Casually'), pgettext('dng', 'Positively'), pgettext('dng', 'Benevolently'), pgettext('dng', 'Surprisingly') ); $sexEnum = true; $secondWordExamples = array( $sexEnum === true ? pgettext('dng,male', 'Cool') : pgettext('dng,female', 'Cool'), $sexEnum === true ? pgettext('dng,male', 'Energetic') : pgettext('dng,female', 'Energetic'), $sexEnum === true ? pgettext('dng,male', 'Smart') : pgettext('dng,female', 'Smart'), $sexEnum === true ? pgettext('dng,male', 'Nice') : pgettext('dng,female', 'Nice'), $sexEnum === true ? pgettext('dng,male', 'Clever') : pgettext('dng,female', 'Clever'), $sexEnum === true ? pgettext('dng,male', 'Brave') : pgettext('dng,female', 'Brave'), $sexEnum === true ? pgettext('dng,male', 'Handsome') : pgettext('dng,female', 'Beautiful'), $sexEnum === true ? pgettext('dng,male', 'Sweet') : pgettext('dng,female', 'Sweet'), $sexEnum === true ? pgettext('dng,male', 'Magical') : pgettext('dng,female', 'Magical'), $sexEnum === true ? pgettext('dng,male', 'Chill') : pgettext('dng,female', 'Chill'), $sexEnum === true ? pgettext('dng,male', 'Fierce') : pgettext('dng,female', 'Fierce'), $sexEnum === true ? pgettext('dng,male', 'Real') : pgettext('dng,female', 'Real'), $sexEnum === true ? pgettext('dng,male', 'Tough') : pgettext('dng,female', 'Tough'), $sexEnum === true ? pgettext('dng,male', 'Wild') : pgettext('dng,female', 'Wild'), $sexEnum === true ? pgettext('dng,male', 'Nerdy') : pgettext('dng,female', 'Nerdy'), $sexEnum === true ? pgettext('dng,male', 'Funny') : pgettext('dng,female', 'Funny'), $sexEnum === true ? pgettext('dng,male', 'Sporty') : pgettext('dng,female', 'Sporty'), $sexEnum === true ? pgettext('dng,male', 'Flirty') : pgettext('dng,female', 'Flirty'), $sexEnum === true ? pgettext('dng,male', 'Happy') : pgettext('dng,female', 'Happy'), $sexEnum === true ? pgettext('dng,male', 'Artsy') : pgettext('dng,female', 'Artsy'), $sexEnum === true ? pgettext('dng,male', 'Crazy') : pgettext('dng,female', 'Crazy'), $sexEnum === true ? pgettext('dng,male', 'Sassy') : pgettext('dng,female', 'Sassy'), $sexEnum === true ? pgettext('dng,male', 'Classy') : pgettext('dng,female', 'Classy'), $sexEnum === true ? pgettext('dng,male', 'Cuddly') : pgettext('dng,female', 'Cuddly'), $sexEnum === true ? pgettext('dng,male', 'Fancy') : pgettext('dng,female', 'Fancy'), $sexEnum === true ? pgettext('dng,male', 'Friendly') : pgettext('dng,female', 'Friendly'), $sexEnum === true ? pgettext('dng,male', 'Fabulous') : pgettext('dng,female', 'Fabulous'), $sexEnum === true ? pgettext('dng,male', 'Kind') : pgettext('dng,female', 'Kind'), $sexEnum === true ? pgettext('dng,male', 'Loyal') : pgettext('dng,female', 'Loyal'), $sexEnum === true ? pgettext('dng,male', 'Genuine') : pgettext('dng,female', 'Genuine'), $sexEnum === true ? pgettext('dng,male', 'Adventurous'): pgettext('dng,female', 'Adventurous'), $sexEnum === true ? pgettext('dng,male', 'Silly') : pgettext('dng,female', 'Silly'), $sexEnum === true ? pgettext('dng,male', 'Caring') : pgettext('dng,female', 'Caring'), $sexEnum === true ? pgettext('dng,male', 'Smooth') : pgettext('dng,female', 'Smooth'), $sexEnum === true ? pgettext('dng,male', 'Outdoorsy') : pgettext('dng,female', 'Outdoorsy'), $sexEnum === true ? pgettext('dng,male', 'Huggable') : pgettext('dng,female', 'Huggable'), $sexEnum === true ? pgettext('dng,male', 'Active') : pgettext('dng,female', 'Active'), $sexEnum === true ? pgettext('dng,male', 'Romantic') : pgettext('dng,female', 'Romantic'), $sexEnum === true ? pgettext('dng,male', 'Witty') : pgettext('dng,female', 'Witty'), $sexEnum === true ? pgettext('dng,male', 'Easygoing') : pgettext('dng,female', 'Easygoing'), ); $randFirsts = array_rand($firstWordExamples, 3); $randSeconds = array_rand($secondWordExamples, 3); $nicenameExamples = array(); $nicenameExamples[] = sprintf(pgettext('dng', '%1$s%2$s'), $randFirsts[0], $randSeconds[0]); $nicenameExamples[] = sprintf(pgettext('dng', '%1$s%2$s'), $randFirsts[1], $randSeconds[1]); $nicenameExamples[] = sprintf(pgettext('dng', '%1$s%2$s'), $randFirsts[2], $randSeconds[2]); print_r($nicenameExamples);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function pgettext() in /in/2vNVr:4 Stack trace: #0 {main} thrown in /in/2vNVr on line 4
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function pgettext() in /in/2vNVr on line 4
Process exited with code 255.