3v4l.org

run code in 300+ PHP versions simultaneously
<?php class asf{ public $asf = 1; } $a = new asf(); var_dump($a); echo spl_object_hash($a).PHP_EOL; //00000000702b718*8*000000003d3a961b var_dump($a); //object(asf)#*1* (1) {["asf"]=>int(1)} unset($a); $b = new stdClass(); echo spl_object_hash($b).PHP_EOL; //00000000702b718*8*000000003d3a961b var_dump($b); //object(stdClass)#*1* (0) {} $c = new asf(); echo spl_object_hash(new asf()).PHP_EOL; //00000000702b718*a*000000003d3a961b var_dump($c); //object(asf)#*2* (1) {["asf"]=>int(1)}
Output for git.master, git.master_jit, rfc.property-hooks
object(asf)#1 (1) { ["asf"]=> int(1) } 00000000000000010000000000000000 object(asf)#1 (1) { ["asf"]=> int(1) } 00000000000000010000000000000000 object(stdClass)#1 (0) { } 00000000000000030000000000000000 object(asf)#2 (1) { ["asf"]=> int(1) }

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:
32.2 ms | 402 KiB | 8 Q