3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tempObject = new SplTempFileObject(__FILE__); echo $tempObject;
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught TypeError: SplTempFileObject::__construct() expects parameter 1 to be integer, string given in /in/nOtsL:3 Stack trace: #0 /in/nOtsL(3): SplTempFileObject->__construct('/in/nOtsL') #1 {main} thrown in /in/nOtsL on line 3
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
php://temp/maxmemory:/in/nOtsL
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/nOtsL:3 Stack trace: #0 /in/nOtsL(3): SplTempFileObject->__construct('/in/nOtsL') #1 {main} thrown in /in/nOtsL on line 3
Process exited with code 255.
Output for 5.0.0 - 5.1.1
Fatal error: Class 'SplTempFileObject' not found in /in/nOtsL on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: spltempfileobject in /in/nOtsL on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: spltempfileobject in /in/nOtsL on line 3