3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $a->b = 1; echo 'Without isset.....'."\n";; var_dump(isset($a)); var_dump(isset($a->b)); var_dump(isset($a->b->c)); var_dump(isset($a->b->c->d)); var_dump(isset($a->b->c->d->e)); echo 'Without isset.....'."\n"; var_dump($a); var_dump($a->b); var_dump($a->b->c); var_dump($a->b->c->d); var_dump($a->b->c->d->e);
Output for git.master, git.master_jit, rfc.property-hooks
Without isset..... bool(true) bool(true) bool(false) bool(false) bool(false) Without isset..... object(stdClass)#1 (1) { ["b"]=> int(1) } int(1) Warning: Attempt to read property "c" on int in /in/coRIE on line 18 NULL Warning: Attempt to read property "c" on int in /in/coRIE on line 19 Warning: Attempt to read property "d" on null in /in/coRIE on line 19 NULL Warning: Attempt to read property "c" on int in /in/coRIE on line 20 Warning: Attempt to read property "d" on null in /in/coRIE on line 20 Warning: Attempt to read property "e" on null in /in/coRIE on line 20 NULL

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