3v4l.org

run code in 300+ PHP versions simultaneously
<?php function assertValidLocale($locale) { if ($locale === null || 1 !== preg_match('/^[a-z0-9@_\\.\\-]*$/i', $locale)) { throw new InvalidArgumentException(sprintf('Invalid "%s" locale.', $locale)); } } var_dump(assertValidLocale(null));
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: Uncaught InvalidArgumentException: Invalid "" locale. in /in/rOoVF:9 Stack trace: #0 /in/rOoVF(13): assertValidLocale(NULL) #1 {main} thrown in /in/rOoVF on line 9
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:
88.4 ms | 401 KiB | 8 Q