3v4l.org

run code in 300+ PHP versions simultaneously
<?php $argv = [1,2,3]; $_POST = [1,2,3]; function foo(?array $argv = null) { if ($argv === null) { global $argv; } print_r($argv); } foo(); foo([4,5,6]);
Output for git.master_jit, git.master
Array ( [0] => 1 [1] => 2 [2] => 3 ) Array ( [0] => 4 [1] => 5 [2] => 6 )

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:
35.52 ms | 544 KiB | 4 Q