3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * ClassDocsComment * * @copyright Copyright (c) 2011 * @author author * @see http://php.net */ class ClassDocComment { } // var_dump ((string) new ReflectionClass ('ClassDocComment')); $rc = new ReflectionClass('ClassDocComment'); var_dump((string) $rc); var_dump($rc->getDocComment());
Output for git.master, git.master_jit, rfc.property-hooks
string(306) "/** * ClassDocsComment * * @copyright Copyright (c) 2011 * @author author * @see http://php.net */ Class [ <user> class ClassDocComment ] { @@ /in/r0PAu 10-12 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [0] { } } " string(104) "/** * ClassDocsComment * * @copyright Copyright (c) 2011 * @author author * @see http://php.net */"

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:
49.7 ms | 402 KiB | 8 Q