3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$a="foo"; //var_dump($a instanceof stdClass); //var_dump("foo" instanceof stdClass); $array1 = array( 'foo' => 'foo', 'bar' => 'bar', ); $array2 = array( 'bar' => 'bar', 'foo' => 'foo', ); var_dump(array_diff($array1, $array2)); // Result: empty array. var_dump($array1 == $array2); // Result: true. var_dump($array1 === $array2); // Result: false. ?>
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(0) { } bool(true) bool(false)
Output for hhvm-3.10.0

Process exited with code 153.