3v4l.org

run code in 300+ PHP versions simultaneously
<?php $gene_symbol = null; $variant_type = 'some'; var_dump(compact('gene_symbol', 'variant_type')); var_dump(compact('gene_symbol', null));
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { ["gene_symbol"]=> NULL ["variant_type"]=> string(4) "some" } Warning: compact(): Argument #2 must be string or array of strings, null given in /in/dfQPv on line 6 array(1) { ["gene_symbol"]=> NULL }

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:
31.8 ms | 401 KiB | 8 Q