3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php new SplTempFileObject('invalid');
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught TypeError: SplTempFileObject::__construct() expects parameter 1 to be integer, string given in /in/7aIUj:2 Stack trace: #0 /in/7aIUj(2): SplTempFileObject->__construct('invalid') #1 {main} thrown in /in/7aIUj on line 2
Process exited with code 255.
Output for 5.1.2 - 5.6.28
Fatal error: Uncaught exception 'RuntimeException' with message 'SplTempFileObject::__construct() expects parameter 1 to be long, string given' in /in/7aIUj:2 Stack trace: #0 /in/7aIUj(2): SplTempFileObject->__construct('invalid') #1 {main} thrown in /in/7aIUj on line 2
Process exited with code 255.
Output for 5.0.0 - 5.1.1
Fatal error: Class 'SplTempFileObject' not found in /in/7aIUj on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: spltempfileobject in /in/7aIUj on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: spltempfileobject in /in/7aIUj on line 2