3v4l.org

run code in 300+ PHP versions simultaneously
<?php $types = [ [null, null], [null, -2], [null, 2], [-2, null], [2, null], [-2, 2], ]; $a = 'f'; foreach($types as $key => $type) { echo "(interval[".($type[0]??'-∞').",".($type[1]??'∞')."] * -1) = -(interval[".($type[0]??'-∞').",".($type[1]??'∞')."]);\r\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
(interval[-∞,∞] * -1) = -(interval[-∞,∞]); (interval[-∞,-2] * -1) = -(interval[-∞,-2]); (interval[-∞,2] * -1) = -(interval[-∞,2]); (interval[-2,∞] * -1) = -(interval[-2,∞]); (interval[2,∞] * -1) = -(interval[2,∞]); (interval[-2,2] * -1) = -(interval[-2,2]);

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:
129.68 ms | 406 KiB | 5 Q