3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once 'XML/Serializer.php'; $serializer = &new XML_Serializer($options); $foo = PEAR::raiseError('Just a test', 1234); $result = $serializer->serialize($foo); ?>
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.18
Deprecated: Assigning the return value of new by reference is deprecated in /in/S5uUo on line 3 Warning: require_once(XML/Serializer.php): failed to open stream: No such file or directory in /in/S5uUo on line 2 Fatal error: require_once(): Failed opening required 'XML/Serializer.php' (include_path='.:') in /in/S5uUo on line 2
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Strict Standards: Assigning the return value of new by reference is deprecated in /in/S5uUo on line 3 Warning: require_once(XML/Serializer.php): failed to open stream: No such file or directory in /in/S5uUo on line 2 Fatal error: require_once(): Failed opening required 'XML/Serializer.php' (include_path='.:') in /in/S5uUo on line 2
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Strict Standards: Assigning the return value of new by reference is deprecated in /in/S5uUo on line 3 Warning: main(XML/Serializer.php): failed to open stream: No such file or directory in /in/S5uUo on line 2 Fatal error: main(): Failed opening required 'XML/Serializer.php' (include_path='.:') in /in/S5uUo on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Warning: main(XML/Serializer.php): failed to open stream: No such file or directory in /in/S5uUo on line 2 Fatal error: main(): Failed opening required 'XML/Serializer.php' (include_path='.:') in /in/S5uUo on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(XML/Serializer.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/S5uUo on line 2 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'XML/Serializer.php' (include_path='.:') in /in/S5uUo on line 2

preferences:
185.23 ms | 1395 KiB | 107 Q