3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = NULL; $c = ''; print $a ?? '1b'; print "\n"; print $a ?: '2b'; print "\n"; print $c ?? '1d'; print "\n"; print $c ?: '2d'; print "\n"; print $e ?? '1f'; print "\n"; print $e ?: '2f';
Output for git.master, git.master_jit
1b 2b 2d 1f Warning: Undefined variable $e in /in/ZBAa1 on line 21 2f

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:
41.38 ms | 408 KiB | 5 Q