3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace abc; class def {} $x = new \ABC\DEF(); print get_class($x); print PHP_EOL; print $x::class; print PHP_EOL; print DEF::class; print PHP_EOL;
Output for rfc.property-hooks, git.master_jit, git.master
abc\def abc\def abc\DEF

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:
60.99 ms | 2722 KiB | 4 Q