3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr_1 = ['[param1]', 'remove', 'demo', '[param2]', 'some', '[param3]']; $arr_2 = ['value1', 'remove', 'some', 'value2', 'demo', 'value3']; var_export( [ 'clean1' => array_values(array_diff_assoc($arr_1, $arr_2)), 'clean2' => array_values(array_diff_assoc($arr_2, $arr_1)) ] );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'clean1' => array ( 0 => '[param1]', 1 => 'demo', 2 => '[param2]', 3 => 'some', 4 => '[param3]', ), 'clean2' => array ( 0 => 'value1', 1 => 'some', 2 => 'value2', 3 => 'demo', 4 => 'value3', ), )

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:
36.84 ms | 1539 KiB | 4 Q