3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file = new \SplFileObject("http://b.namshicdn.com/product/22/087/1.jpg"); var_dump($file);
based on VDKh4
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/cVFiJ:3 Stack trace: #0 /in/cVFiJ(3): SplFileObject->__construct('http://b.namshi...') #1 {main} thrown in /in/cVFiJ 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/cVFiJ:3 Stack trace: #0 /in/cVFiJ(3): SplFileObject->__construct('http://b.namshi...') #1 {main} thrown in /in/cVFiJ on line 3
Process exited with code 255.
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/cVFiJ:3 Stack trace: #0 /in/cVFiJ(3): SplFileObject->__construct('http://b.namshi...') #1 {main} thrown in /in/cVFiJ on line 3
Process exited with code 255.
Output for 5.3.0 - 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/cVFiJ:3 Stack trace: #0 /in/cVFiJ(3): SplFileObject->__construct('http://b.namshi...') #1 {main} thrown in /in/cVFiJ 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/cVFiJ on line 3 Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileObject::__construct(): php_network_getaddresses: getaddrinfo failed: System error' in /in/cVFiJ:3 Stack trace: #0 /in/cVFiJ(3): SplFileObject->__construct('http://b.namshi...') #1 {main} thrown in /in/cVFiJ 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/cVFiJ on line 3 Fatal error: Class 'SplFileObject' not found in /in/cVFiJ 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/cVFiJ on line 3 Fatal error: Cannot instantiate non-existent class: splfileobject in /in/cVFiJ 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/cVFiJ on line 3 Fatal error: Cannot instantiate non-existent class: splfileobject in /in/cVFiJ on line 3