3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('FRAMEWORK_PATH', 'aaaaa/'); 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, rfc.property-hooks
array(4) { [0]=> string(28) "aaaaa/ContextProcessors.i18n" [1]=> string(26) "aaaaa/ContextProcessors.tz" [2]=> string(31) "aaaaa/ContextProcessors.request" [3]=> string(32) "aaaaa/ContextProcessors.base_url" } int(9)

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