3v4l.org

run code in 300+ PHP versions simultaneously
<?php $existing = array(1,2,3,4); $onForm = array(3,4,5,6); $removed = array_diff($existing,$onForm); $new = array_diff($onForm,$existing); $unchanged = array_intersect($existing,$onForm); echo 'existing'; print_r($existing); echo 'form'; print_r($onForm); echo 'removed'; print_r($removed); echo 'new'; print_r($new); echo 'unchanged'; print_r($unchanged);
Output for git.master, git.master_jit, rfc.property-hooks
existingArray ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 ) formArray ( [0] => 3 [1] => 4 [2] => 5 [3] => 6 ) removedArray ( [0] => 1 [1] => 2 ) newArray ( [2] => 5 [3] => 6 ) unchangedArray ( [2] => 3 [3] => 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:
40.83 ms | 401 KiB | 8 Q