3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(defined('JSON_C_VERSION') ? JSON_C_VERSION : NULL); var_dump(PHP_INI_SIZE); echo "JSON_BIGINT_AS_STRING:\n"; var_dump(json_decode('[12345678901234567890]', TRUE, 512, JSON_BIGINT_AS_STRING)); var_dump(json_last_error()); var_dump(PHP_VERSION_ID >= 50500 ? json_last_error_msg() : '?'); echo "Invalid UTF-8 input:\n"; var_dump(json_decode("\"\xff\"")); var_dump(json_last_error()); var_dump(PHP_VERSION_ID >= 50500 ? json_last_error_msg() : '?'); echo "Valid UTF-8 input, but the result can not be (lead surrogate followed by lead surrogate):\n"; var_dump(json_decode('"\uD811\uD811"')); var_dump(json_last_error()); var_dump(PHP_VERSION_ID >= 50500 ? json_last_error_msg() : '?'); echo "Fatal error:\n"; var_dump(json_decode('{"\u0000": 1}')); var_dump(json_last_error()); var_dump(PHP_VERSION_ID >= 50500 ? json_last_error_msg() : '?');
Output for git.master, git.master_jit, rfc.property-hooks
NULL Fatal error: Uncaught Error: Undefined constant "PHP_INI_SIZE" in /in/HDndT:3 Stack trace: #0 {main} thrown in /in/HDndT on line 3
Process exited with code 255.

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:
53.98 ms | 401 KiB | 8 Q