3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Man { protected $Vik; protected $Staty; function input($v, $s) { $this->Vik=$v; $this->Staty=$s; } } class Gayduk extends Man { protected $Name; protected $Priz; function input1($n, $p) { $this->Name=$n; $this->Priz=$p; Man::input(); } function printinfo() { echo "$this->Vik"; echo "$this->Staty"; echo "$this->Name"; echo "$this->Priz"; } } $man = new Man(); $rsg = new Gayduk(); $man->input('18', 'Чоловіча'); $rsg->input1('Роман', 'Гайдук'); $rsg->printinfo(); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: Too few arguments to function Man::input(), 0 passed in /in/s70bI on line 20 and exactly 2 expected in /in/s70bI:6 Stack trace: #0 /in/s70bI(20): Man->input() #1 /in/s70bI(35): Gayduk->input1('\xD0\xA0\xD0\xBE\xD0\xBC\xD0\xB0\xD0\xBD', '\xD0\x93\xD0\xB0\xD0\xB9\xD0\xB4\xD1\x83\xD0\xBA') #2 {main} thrown in /in/s70bI on line 6
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:
48.98 ms | 401 KiB | 8 Q