3v4l.org

run code in 300+ PHP versions simultaneously
<?php class dupa { public $a = 'j'; public static $NICE = 'STATIC_VALUE'; public function __construct($param) { $this->a = $param; echo '+_construct'.$this->a.self::$NICE; } public function __call($a, $b) { echo 'Wywolano metodÄ™ '.$a.' z parametrami:'; foreach($b as $i=>$val) { echo 'indeks: '.$i.'wartosc: '.$val; } } public function setA($a) { $this->a = $a; } }; $a = new dupa('blabla'); echo $a->a; $b = new dupa(''); echo $b->a; $b->setA('bb'); $b->setb('bb') ?>
Output for git.master, git.master_jit, rfc.property-hooks
+_constructblablaSTATIC_VALUEblabla+_constructSTATIC_VALUEWywolano metodÄ™ setb z parametrami:indeks: 0wartosc: bb

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