3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait test { public function method1() { echo __CLASS__; } } class class1 { use test; } $obj = new class1; $obg->method1();
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $obg in /in/hTjTI on line 16 Fatal error: Uncaught Error: Call to a member function method1() on null in /in/hTjTI:16 Stack trace: #0 {main} thrown in /in/hTjTI on line 16
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:
38.95 ms | 401 KiB | 8 Q