3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BaseObject { } class First extends BaseObject { } $object1 = new First; $object2 = new class extends First { }; echo $className1 = get_class($object1), "\n", $className2 = get_class($object2), "\n"; var_dump(new First instanceof $className2);
Output for git.master, git.master_jit, rfc.property-hooks
First First@anonymous/in/dSISl:10$0 bool(false)

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:
62.75 ms | 401 KiB | 8 Q