3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php method_exists('SplFileObject', 'fread') or die("No SplFileObject::fread()"); $i=0; $file = new SplFileObject(__FILE__); while ($i++ < 1000 && ($chunk = $file->fread($file->getSize())) !== false) { echo $chunk . "\n"; }
based on cJNIP
Output for 5.5.24 - 7.1.0
<?php method_exists('SplFileObject', 'fread') or die("No SplFileObject::fread()"); $i=0; $file = new SplFileObject(__FILE__); while ($i++ < 1000 && ($chunk = $file->fread($file->getSize())) !== false) { echo $chunk . "\n"; }
Output for 4.3.0 - 5.4.45
No SplFileObject::fread()