3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array ( 0 => array ( 'afa' => 'AM', 'description' => 'Ad�mentes t�telek', 'value' => '0.0', 'id' => '50', ), 1 => array ( 'afa' => '18 %', 'description' => '18 %- os �FA', 'value' => '0.17999999999999999', 'id' => '48', ), 2 => array ( 'afa' => 'K�z�ss�gi 0', 'description' => 'K�z�ss�gi ad�z�s� t�telek alapja', 'value' => '0.0', 'id' => '49', ), 3 => array ( 'afa' => 'EVA 27 %', 'description' => 'EVA 27 %- os �FA', 'value' => '0.27000000000000002', 'id' => '51', ), 4 => array ( 'afa' => '5 %', 'description' => '5 % -os �FA', 'value' => '5.0000000000000003E-2', 'id' => '25', ), 5 => array ( 'afa' => 'Import', 'description' => 'Import, nem EU beszerz�s', 'value' => '0.0', 'id' => '52', ), 6 => array ( 'afa' => 'Ford�tott 0', 'description' => 'Ford�tott ad�z�s� t�telek alapja', 'value' => '0.0', 'id' => '33', ), 7 => array ( 'afa' => 'Export', 'description' => 'Export, nem EU �rt�kes�t�s', 'value' => '0.0', 'id' => '53', ), 8 => array ( 'afa' => 'K�z�ss�gi szolg.', 'description' => 'K�z�ss�gi ad�z�s� szolg�ltat�s t�telek alapja', 'value' => '0.0', 'id' => '54', ), 9 => array ( 'afa' => '�FA k�r�n k.', 'description' => '�FA k�r�n k�v�li t�telek', 'value' => '0.0', 'id' => '37', ), 10 => array ( 'afa' => '27 %', 'description' => '27 %- os �FA', 'value' => '0.27000000000000002', 'id' => '55', ), 11 => array ( 'afa' => 'BKT ktg-k�nt elsz�m.', 'description' => 'Le nem vonhat� �fa miatt k�lts�gk�nt elsz�molt ad�', 'value' => '0.0', 'id' => '56', ), 12 => array ( 'afa' => '27 % TE', 'description' => '27 %- os t�rgyi eszk�z �FA', 'value' => '0.27000000000000002', 'id' => '39', ), 13 => array ( 'afa' => 'Ford�tott 27 %', 'description' => 'Ford�tott ad�z�s� t�telek �FA �rt�ke', 'value' => '0.27000000000000002', 'id' => '42', ), 14 => array ( 'afa' => '25 %', 'description' => '25 %- os �FA', 'value' => '0.25', 'id' => '43', ), 15 => array ( 'afa' => 'K�z�ss�gi 27 %', 'description' => 'K�z�ss�gi ad�z�s� t�telek �FA �rt�ke', 'value' => '0.27000000000000002', 'id' => '44', ), 16 => array ( 'afa' => '�th�z�d�l �fa 27%', 'description' => 'Elt�r� id�szak� �fa', 'value' => '0.27000000000000002', 'id' => '60', ), ); array_walk_recursive($array, function(&$value, $key) { if (is_string($value)) { $value = iconv('windows-1252', 'utf-8', $value); } }); ?>
based on JEIRL
Output for 5.3.19 - 5.5.34, 5.6.8 - 5.6.20, 5.6.28 - 7.0.5, 7.0.20 - 7.2.0
Output for 7.0.6
Fatal error: Uncaught Error: Call to undefined function iconv() in /in/EXni1:7 Stack trace: #0 [internal function]: {closure}('AM', 'afa') #1 /in/EXni1(9): array_walk_recursive(Array, Object(Closure)) #2 {main} thrown in /in/EXni1 on line 7
Process exited with code 255.
Output for 5.5.35, 5.6.21
Fatal error: Call to undefined function iconv() in /in/EXni1 on line 7
Process exited with code 255.