3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_1 = array( 0 => 4413, 1 => 4414, 2 => 13020, 3 => 13022, 4 => 4801, 5 => 4802, 6 => 4809, 7 => 11204, 8 => 14201, 9 => 14202, 10 => 14203, 11 => 12303, 12 => 12304, 13 => 10113, 14 => 10302, 15 => 10307, 16 => 4, 17 => 10404, 18 => 10502, 19 => 10701, 20 => 10704, 21 => 10801, 22 => 11006, 23 => 11201, 24 => 11305, 25 => 11310, 26 => 11605, 27 => 11702, 28 => 11705, 29 => 11707, 30 => 11803 ); $array_2 = array( 0 => 4413, 1 => 4414, 2 => 13020, 3 => 13022, 4 => 4801, 5 => 4802, 6 => 4809, 7 => 11204, 8 => 14201, 9 => 14202, 10 => 14203, 11 => 12303, 12 => 12304, 13 => 10113, 14 => 10302, 15 => 10307, 16 => 4, 17 => 10404, 18 => 10502, 19 => 10701, 20 => 10704, 21 => 10801, 22 => 11006, 23 => 11201, 24 => 11305, 25 => 11310, 26 => 11605, 27 => 11702, 28 => 11705, 29 => 11707, 30 => 11803, 31 => 4415, 32 => 4416, 33 => 4417, 34 => 4418 ); echo "array_1 does not contain any values not present in array_2:\n"; print_r(array_diff($array_1, $array_2)); echo "\narray_2 contains 4 values that are not present in array_1:\n"; print_r(array_diff($array_2, $array_1));
Output for git.master, git.master_jit, rfc.property-hooks
array_1 does not contain any values not present in array_2: Array ( ) array_2 contains 4 values that are not present in array_1: Array ( [31] => 4415 [32] => 4416 [33] => 4417 [34] => 4418 )

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