3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //line 2 //line 3 //line 4 //line 5 $s = new SplFileObject(__FILE__); $s->seek(12); $s->next(); var_dump($s->key()); var_dump($s->valid()); ?>
Output for 5.2.7 - 7.1.0
int(12) bool(false)
Output for 5.1.0 - 5.2.6

Process exited with code 137.
Output for 5.0.0 - 5.0.5
Fatal error: Class 'SplFileObject' not found in /in/3NePt on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: splfileobject in /in/3NePt on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: splfileobject in /in/3NePt on line 6