3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array( 'name' => 'Jim', 'age' => 29 ); $array2 = array( 'name' => 'Joe', 'age' => 23 'turd' => 'fart' ); $result = array_diff_assoc($array2, $array1); print_r($result);
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected ''turd'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /in/b5gmX on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /in/b5gmX on line 10
Process exited with code 255.