3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T1 { function UPPERCASE() { } function UPPERCASE1() { } } trait T2 { use T1 { UPPERCASE as Trait1_Camelcase; } function UPPERCASE() { } function UPPERCASE2() { } } class C { use T2 { UPPERCASE as Trait2_Camelcase; } function UPPERCASEC() { } } var_dump(get_class_methods("C"));
Output for git.master, git.master_jit, rfc.property-hooks
array(6) { [0]=> string(10) "UPPERCASEC" [1]=> string(16) "Trait2_Camelcase" [2]=> string(9) "UPPERCASE" [3]=> string(10) "UPPERCASE2" [4]=> string(16) "Trait1_Camelcase" [5]=> string(10) "UPPERCASE1" }

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