3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function bobo(){ echo "earlier"; } } class B{ function bibo(){ echo "latest"; } } $x = function(){ $this->bobo(); }; $b = new B; $x = $x->bindTo($b, A::CLASS); $x();
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined method B::bobo() in /in/7XilH:12 Stack trace: #0 /in/7XilH(19): A->{closure}() #1 {main} thrown in /in/7XilH on line 12
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:
55.14 ms | 401 KiB | 8 Q