3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $x = hash('sha256', "\n", !true); // var_dump($x); class X { private $x=1; private $x1=1; protected $y=2; protected $y1=2; public $z=3; public $z1=3; public function a() { return 1; } } $x=new X(); var_dump((array) $x);
Output for git.master, git.master_jit, rfc.property-hooks
array(6) { ["Xx"]=> int(1) ["Xx1"]=> int(1) ["*y"]=> int(2) ["*y1"]=> int(2) ["z"]=> int(3) ["z1"]=> int(3) }

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