3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Expect to see "fr", but get null var_dump(Locale::lookup(["fr"], str_repeat("a", 157), false, "fr")); var_dump(intl_get_error_code()); var_dump(intl_get_error_message());
Output for git.master, git.master_jit, rfc.property-hooks
NULL int(1) string(89) "Locale string too long, should be no longer than 156 characters: U_ILLEGAL_ARGUMENT_ERROR"

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:
126.2 ms | 405 KiB | 5 Q