3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static $a=[ FRAMEWORK_PATH . 'ContextProcessors.i18n', FRAMEWORK_PATH . 'ContextProcessors.tz', FRAMEWORK_PATH . 'ContextProcessors.request', FRAMEWORK_PATH . 'ContextProcessors.base_url', ]; const b = 9; } class B extends A { static $a=1; const b = 2; } var_dump(A::$a); var_dump(A::b);
Output for git.master, git.master_jit
Fatal error: Uncaught Error: Undefined constant "FRAMEWORK_PATH" in /in/NS7d5:27 Stack trace: #0 {main} thrown in /in/NS7d5 on line 27
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "FRAMEWORK_PATH" in /in/NS7d5:6 Stack trace: #0 /in/NS7d5(27): [constant expression]() #1 {main} thrown in /in/NS7d5 on line 6
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:
31.13 ms | 401 KiB | 8 Q