3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IInterface { public function someMethod(); public function anotherMethod(); } function classData( ReflectionClass $class ) { $details = ""; $name = $class->getName(); if ( $class->isInterface() ) { $details .= "$name -- это интерфейс\n"; } if ( $class->isAbstract() ) { $details .= "$name -- это абстрактный класс\n"; } return $details; } $class_info = new ReflectionClass('IInterface'); echo classData($class_info);
Output for git.master_jit, git.master, rfc.property-hooks
IInterface -- это интерфейс IInterface -- это абстрактный класс

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