3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['a' => 1, 'b' => 2, 'c' => 3]; $b = [4,5]; print_r($a); print_r($b); $r= array_splice($a, 2, 2, $b); $r1 = array_slice($a, 2,1,1); print_r($r); print_r($r1);
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [a] => 1 [b] => 2 [c] => 3 ) Array ( [0] => 4 [1] => 5 ) Array ( [c] => 3 ) Array ( [0] => 4 )

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