3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function init ( $resources = null ) { if ( ! $resources ) $resources = get_class_methods(__CLASS__); foreach ( $resources as $method ) { if ( ! ( substr($method, 0, 5) == '_init' ) ) $method = '_init' . $method; if ( ! method_exists(__CLASS__, $method)) continue; self::$method(); } } protected static function _initCharset () { var_dump('Charset'); } protected static function _initConfig () { var_dump('Config'); } protected static function _initDoctrine () { var_dump('Doctrine'); } protected static function _initCookie () { var_dump('Cookie'); } protected static function _initA () { var_dump('A'); } }
Output for git.master, git.master_jit, rfc.property-hooks

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