3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get() { return SOME_CONST; } define('sOmE_CoNsT', 1, true); echo get(); // Prints 1 define('SOME_CONST', 2); echo get(); // Prints 2
Output for git.master
Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported in /in/L6nCp on line 5 Fatal error: Uncaught Error: Undefined constant "SOME_CONST" in /in/L6nCp:3 Stack trace: #0 /in/L6nCp(6): get() #1 {main} thrown in /in/L6nCp 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:
63 ms | 408 KiB | 5 Q