3v4l.org

run code in 300+ PHP versions simultaneously
<?php function return_block_links($n = null, $options = null) { $numargs = func_num_args(); $args = func_get_args(); //Проверяем аргументы для старой сигнатуры вызова if (2 == $numargs) { // return_links($n, $options) if (!is_array($args[1])) { // return_links($n, $offset) - deprecated! $options = null; } } elseif (2 < $numargs) { // return_links($n, $offset, $options) - deprecated! if (!is_array($options)) { $options = $args[3]; } } var_dump($n, $options); echo PHP_EOL; } return_block_links(); return_block_links(5); return_block_links(5, array('opts')); return_block_links(5,2); return_block_links(5,2,array('opts'));
Output for git.master, git.master_jit, rfc.property-hooks
NULL NULL int(5) NULL int(5) array(1) { [0]=> string(4) "opts" } int(5) NULL Warning: Undefined array key 3 in /in/oTALL on line 17 int(5) 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:
41.55 ms | 401 KiB | 8 Q