3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode(array( 'Процессор' => 'Qualcomm Snapdragon 600', 'Оперативная память' => '2Гб', 'Bстроенная память' => '16Гб', 'Диагональ экрана' => '8.3', 'Разрешение экрана' => '1920 х 1200', 'Камера' => '5Мп + 1.3Мп', ));
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
{"\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440":"Qualcomm Snapdragon 600","\u041e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u044c":"2\u0413\u0431","B\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u044c":"16\u0413\u0431","\u0414\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044c \u044d\u043a\u0440\u0430\u043d\u0430":"8.3","\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u0430":"1920 \u0445 1200","\u041a\u0430\u043c\u0435\u0440\u0430":"5\u041c\u043f + 1.3\u041c\u043f"}
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/HEWZY on line 1
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/HEWZY on line 1
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/HEWZY on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/HEWZY on line 1

preferences:
248.48 ms | 401 KiB | 353 Q