3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr=array(1,1,2,2,3,3,4,4,5,5,6,6,7,7,8); $arr = array_reduce($arr, 'xor'); echo $arr[0];
Output for 5.3.0 - 7.1.7
Warning: array_reduce() expects parameter 2 to be a valid callback, function 'xor' not found or invalid function name in /in/L1B0X on line 4
Output for 5.2.3 - 5.2.17
Warning: array_reduce(): The second argument, 'xor', should be a valid callback in /in/L1B0X on line 4
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: array_reduce() [<a href='function.array-reduce'>function.array-reduce</a>]: The second argument, 'xor', should be a valid callback in <b>/in/L1B0X</b> on line <b>4</b><br />
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: array_reduce(): The second argument, 'xor', should be a valid callback in <b>/in/L1B0X</b> on line <b>4</b><br />
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: array_reduce() [<a href='http://www.php.net/function.array-reduce'>function.array-reduce</a>]: The second argument, 'xor', should be a valid callback in <b>/in/L1B0X</b> on line <b>4</b><br />