3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Coercive mode function sumOfInts(array ...$ints) { print_r($ints); return array_sum($ints); } var_dump(sumOfInts([1,2,3], [4,5,6]));
Output for git.master, git.master_jit
Array ( [0] => Array ( [0] => 1 [1] => 2 [2] => 3 ) [1] => Array ( [0] => 4 [1] => 5 [2] => 6 ) ) int(0)
Output for rfc.property-hooks
Array ( [0] => Array ( [0] => 1 [1] => 2 [2] => 3 ) [1] => Array ( [0] => 4 [1] => 5 [2] => 6 ) ) Warning: array_sum(): Addition is not supported on type array in /in/CEDSS on line 6 Warning: array_sum(): Addition is not supported on type array in /in/CEDSS on line 6 int(0)

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.77 ms | 401 KiB | 8 Q