run code in 200+ php & hhvm versions
Bugs & Features
<?php /** 取り出したい対象のオブジェクト */ class Hoge { protected $a = 'maa'; private $b = 2; public $c; function __construct() { $this->c = new Hoge; } } /** 取り出すためのコード */ class TestHoge extends Hoge { public static function __set_state($data) { return $data; } } eval('$d='.var_export(new TestHoge, true).';'); // protectedメンバ$aを取得 echo $d['a'] . PHP_EOL; // privateメンバ$bを取得 echo $d['b'] . PHP_EOL;
based on MOr5B

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

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