3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $voiting = '<div class="success-message"><div class="thanks">Вы уже голосовали!</div>Ваш голос засчитан!</div>'; $json_data['failed'] = $voiting; echo json_encode($json_data);
Output for 5.2.0 - 7.1.0
{"failed":"<div class=\"success-message\"><div class=\"thanks\">\u0412\u044b \u0443\u0436\u0435 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438!<\/div>\u0412\u0430\u0448 \u0433\u043e\u043b\u043e\u0441 \u0437\u0430\u0441\u0447\u0438\u0442\u0430\u043d!<\/div>"}
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/peuPc on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/peuPc on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/peuPc on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/peuPc on line 5