3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(null->user_id); // Raise the warning as expected var_dump(null->user_id ?? 0); // Without Warning
Output for git.master_jit, git.master, rfc.property-hooks
Warning: Attempt to read property "user_id" on null in /in/LZ0RH on line 3 NULL int(0)

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:
29.44 ms | 405 KiB | 5 Q