3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <row> <entry XY="1" al="23" se="5" ag="fgh"> </entry> <entry XY="1" al="23" se="5" ag="fgh">Content1</entry> <entry XY="1" al="23" se="5" ag="fgh">Content2</entry> <entry XY="1" al="23" se="5" ag="fgh"> </entry> <entry XY="1" al="23" se="5" ag="fgh">Content3</entry> </row> XML; $xml = simplexml_load_string($x); $y = $xml->xpath("//entry[not(text()) and not(text(" "))]"); var_dump($y);
Output for 5.4.0 - 5.4.16
Parse error: syntax error, unexpected '"))]"' (T_CONSTANT_ENCAPSED_STRING) in /in/Zm0C4 on line 14
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/Zm0C4 on line 14
Process exited with code 255.

preferences:
177.7 ms | 1395 KiB | 51 Q