3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decodeText($texts) { if(is_array($texts)) { $encoded = array(); foreach($texts as $key => $text) { if (!is_array($text )) { $encoded[$key] = utf8_decode($text); } else { $this->decodeText($text); } } } else { $encoded = utf8_decode($text); } return $encoded; } $smth = array('test' => 'ääõölö', 'test2' => array('öüõü', 'dasd212äöäöä' )); $smth = decodeText($texts); var_dump($smth); var_dump(decodeText('köõöõüpõ'));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $texts in /in/NUehr on line 28 Warning: Undefined variable $text in /in/NUehr on line 22 Deprecated: Function utf8_decode() is deprecated in /in/NUehr on line 22 Deprecated: utf8_decode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/NUehr on line 22 string(0) "" Warning: Undefined variable $text in /in/NUehr on line 22 Deprecated: Function utf8_decode() is deprecated in /in/NUehr on line 22 Deprecated: utf8_decode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/NUehr on line 22 string(0) ""

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:
44.4 ms | 402 KiB | 8 Q