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', ), ); for($i = 0; $i<1000;$i++) { utf8_converter($array); } echo $utf8_converter($array); function utf8_converter($array) { array_walk_recursive($array, function(&$item, $key){ if(is_string($item)){ $item = utf8_encode($item); } }); return $array; } ?>
based on FHS0j
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: utf8_converter in /in/VPDVv on line 9 Fatal error: Uncaught Error: Function name must be a string in /in/VPDVv:9 Stack trace: #0 {main} thrown in /in/VPDVv on line 9
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Notice: Undefined variable: utf8_converter in /in/VPDVv on line 9 Fatal error: Function name must be a string in /in/VPDVv on line 9
Process exited with code 255.