3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('error_reporting', E_ALL & E_NOTICE & E_WARNING & E_STRICT & E_DEPRECATED); ini_set('display_errors','On'); class A { public function __construct() { echo "A"; } public function ccc() { echo "A"; } } class B extends A { public function __construct($a) { echo $a; } public function ccc($a) { echo $a; } } $class = new B("XXXX"); // YO $class->ccc("ssss"); // Nem jó
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Declaration of B::ccc($a) must be compatible with A::ccc() in /in/CJPEe on line 22
Process exited with code 255.

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