3v4l.org

run code in 200+ 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 5.3.0 - 5.4.29
Fatal error: instanceof expects an object instance, constant given in /in/oga7g on line 4
Process exited with code 255.