3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'absolutely adorable accepted acclaimed accomplish accomplishment achievement action active admire adventure affirmative affluent agree agreeable amazing angelic appealing approve aptitude attractive awesome B beaming beautiful believe beneficial bliss bountiful bounty brave bravo brilliant bubbly C calm celebrated certain champ champion charming cheery choice classic classical clean commend composed congratulation constant cool courageous creative cute D dazzling delight delightful distinguished divine E earnest easy ecstatic effective effervescent efficient effortless electrifying elegant enchanting encouraging endorsed energetic energized engaging enthusiastic essential esteemed ethical excellent exciting exquisite F fabulous fair familiar famous fantastic favorable fetching fine fitting flourishing fortunate free fresh friendly fun funny G generous genius genuine giving glamorous glowing good gorgeous graceful great green grin growing H handsome happy harmonious healing healthy hearty heavenly honest honorable honored hug I idea ideal imaginative imagine impressive independent innovate innovative instant instantaneous instinctive intuitive intellectual intelligent inventive J jovial joy jubilant K keen kind knowing knowledgeable L laugh legendary light learned lively lovely lucid lucky luminous M marvelous masterful meaningful merit meritorious miraculous motivating moving N natural nice novel now nurturing nutritious O okay one one-hundred percent open optimistic P paradise perfect phenomenal pleasurable plentiful pleasant poised polished popular positive powerful prepared pretty principled productive progress prominent protected proud Q quality quick quiet R ready reassuring refined refreshing rejoice reliable remarkable resounding respected restored reward rewarding right robust S safe satisfactory secure seemly simple skilled skillful smile soulful sparkling special spirited spiritual stirring stupendous stunning success successful sunny super superb supporting surprising T terrific thorough thrilling thriving tops tranquil transforming transformative trusting truthful U unreal unwavering up upbeat upright upstanding V valued vibrant victorious victory vigorous virtuous vital vivacious W wealthy welcome well whole wholesome willing wonderful wondrous worthy wow Y yes yummy Z zeal zealous'; $words = array_filter(array_map(function ($text) { return trim($text); }, explode("\n", $text)), function ($text) { return strlen($text) > 1; }); echo "[\"".implode("\","."\r\n"."\"")."\"]";
Output for 8.1.24 - 8.1.28, 8.2.11 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught TypeError: implode(): Argument #1 ($array) must be of type array, string given in /in/WWA9k:294 Stack trace: #0 /in/WWA9k(294): implode('",\r\n"') #1 {main} thrown in /in/WWA9k on line 294
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.23, 8.2.0 - 8.2.10
Fatal error: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /in/WWA9k:294 Stack trace: #0 /in/WWA9k(294): implode('",\r\n"') #1 {main} thrown in /in/WWA9k on line 294
Process exited with code 255.
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: implode(): Argument must be an array in /in/WWA9k on line 294 [""]
Output for 5.2.17

Process exited with code 137.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.16
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/WWA9k on line 293
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/WWA9k on line 293
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/WWA9k on line 293
Process exited with code 255.

preferences:
334.21 ms | 401 KiB | 459 Q