3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = function() { p($this->name); }; class F { private $name = 'F'; } $f->call(new F);
based on 5mo2j

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
Fatal error: Uncaught Error: Call to undefined function p() in /in/roHgD:4 Stack trace: #0 [internal function]: F->{closure}() #1 /in/roHgD(11): Closure->call(Object(F)) #2 {main} thrown in /in/roHgD on line 4

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