3v4l.org

run code in 500+ PHP versions simultaneously
<?php $query = [1 => (object) ['materialized' => false]]; var_dump(match (true) { ($query[1]?->materialized ?? null) === true => 'MATERIALIZED ', ($query[1]?->materialized ?? null) === false => 'NOT MATERIALIZED ', default => '', }); var_dump(match ($query[1]?->materialized ?? null) { true => 'MATERIALIZED ', false => 'NOT MATERIALIZED ', default => '', });
Output for git.master_jit, git.master
string(17) "NOT MATERIALIZED " string(17) "NOT MATERIALIZED "

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:
19.54 ms | 714 KiB | 4 Q