3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = new SplFileInfo("/dev/null"); $h = $f->openFile(); while($h->valid()){ $h->current(); // comment out this line to get an endless loop $h->next(); } die("done");

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

Output for Arrow functions
done
Output for Object typehint
done
Output for Array change keys
done
Output for Lexical anon
done
Output for Typed properties
done

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