3v4l.org

run code in 500+ PHP versions simultaneously
<?php $x = 'a'; $b = 8; $c = 25; echo '1: '; echo (null ?? $x.'_1')."\n"; echo '2: '; echo ('notnull' ?? $x.'_1')."\n"; echo '3: '; echo ('notnull' ?? ($x.'_1'))."\n"; echo '4: '; echo ('notnull' ?? $b + 1)."\n"; echo '5: '; echo ('notnull' ?? $c > 1)."\n"; echo '6: '; echo ('notnull' ?? $b || $c)."\n"; echo ('7: '. 1 + $c ?? 2 + $b ?? 3); echo "\n"; echo '8: '. 1 + null ?? 2 + $b ?? 3; echo "\n";
Output for git.master, git.master_jit, rfc.property-hooks
1: a_1 2: notnull 3: notnull 4: notnull 5: notnull 6: notnull 7: 26 8: 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:
46.73 ms | 1552 KiB | 4 Q