3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file = new \SplFileObject("https://b.namshicdn.com/product/22/087/1.jpg"); var_dump($file);
Output for 7.0.0 - 7.0.3, 7.0.5 - 7.1.0
Fatal error: Uncaught RuntimeException: SplFileObject::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/VDKh4:3 Stack trace: #0 /in/VDKh4(3): SplFileObject->__construct('https://b.namsh...') #1 {main} thrown in /in/VDKh4 on line 3
Process exited with code 255.
Output for 7.0.4
Fatal error: Uncaught RuntimeException: SplFileObject::__construct(): php_network_getaddresses: getaddrinfo failed: System error in /in/VDKh4:3 Stack trace: #0 /in/VDKh4(3): SplFileObject->__construct('https://b.namsh...') #1 {main} thrown in /in/VDKh4 on line 3
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileObject::__construct(https://b.namshicdn.com/product/22/087/1.jpg): failed to open stream: No such file or directory' in /in/VDKh4:3 Stack trace: #0 /in/VDKh4(3): SplFileObject->__construct() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 5.6.28
Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileObject::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known' in /in/VDKh4:3 Stack trace: #0 /in/VDKh4(3): SplFileObject->__construct('https://b.namsh...') #1 {main} thrown in /in/VDKh4 on line 3
Process exited with code 255.
Output for 5.4.34 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19
Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileObject::__construct(): php_network_getaddresses: getaddrinfo failed: System error' in /in/VDKh4:3 Stack trace: #0 /in/VDKh4(3): SplFileObject->__construct('https://b.namsh...') #1 {main} thrown in /in/VDKh4 on line 3
Process exited with code 255.
Output for 5.3.0 - 5.4.32
Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileObject::__construct(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?' in /in/VDKh4:3 Stack trace: #0 /in/VDKh4(3): SplFileObject->__construct('https://b.namsh...') #1 {main} thrown in /in/VDKh4 on line 3
Process exited with code 255.
Output for 5.1.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/VDKh4 on line 3 Notice: SplFileObject::__construct(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/VDKh4 on line 3 Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileObject::__construct(https://b.namshicdn.com/product/22/087/1.jpg): failed to open stream: No such file or directory' in /in/VDKh4:3 Stack trace: #0 /in/VDKh4(3): SplFileObject->__construct('https://b.namsh...') #1 {main} thrown in /in/VDKh4 on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/VDKh4 on line 3 Fatal error: Class 'SplFileObject' not found in /in/VDKh4 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/VDKh4 on line 3 Fatal error: Cannot instantiate non-existent class: splfileobject in /in/VDKh4 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/VDKh4 on line 3 Fatal error: Cannot instantiate non-existent class: splfileobject in /in/VDKh4 on line 3