3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $one = array('foo' => 'bar', 'baz' => 'qux'); $two = array('foo' => 'bar', 'baz' => 'qux', 'one' => 'two'); $diff = array_diff($two, $one); var_dump($diff);
based on 7IeSQ
Output for 4.3.0 - 7.1.7, 7.2.0
array(1) { ["one"]=> string(3) "two" }
Output for 7.1.10

Process exited with code 137.