3v4l.org

run code in 300+ PHP versions simultaneously
<?php include('start.php'); require_once('lib/Phirehose/Phirehose.php'); class FilterTrackConsumer extends Phirehose { public $db; public function setDB(&$db) { $this->db = $db; } public function enqueueStatus($status) { $tweets = new Tweets($this->db); $data = json_decode($status, true); $user_id = $data['user']['id']; if($user_id) { $raw_tweet = serialize($data); $tweets->insertNewTweet($user_id, $raw_tweet); } } } $sc = new FilterTrackConsumer('John_Gald', 'yjdsqgfhjkm', Phirehose::METHOD_FILTER); $sc->setDB($db); $twitterIds = $users->getTwitterIds(); $sc->setFollow($twitterIds); $sc->consume(); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: include(): open_basedir restriction in effect. File(start.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/JhCWb on line 3 Warning: include(start.php): Failed to open stream: Operation not permitted in /in/JhCWb on line 3 Warning: include(): Failed opening 'start.php' for inclusion (include_path='.:') in /in/JhCWb on line 3 Warning: require_once(): open_basedir restriction in effect. File(lib/Phirehose/Phirehose.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/JhCWb on line 4 Warning: require_once(lib/Phirehose/Phirehose.php): Failed to open stream: Operation not permitted in /in/JhCWb on line 4 Fatal error: Uncaught Error: Failed opening required 'lib/Phirehose/Phirehose.php' (include_path='.:') in /in/JhCWb:4 Stack trace: #0 {main} thrown in /in/JhCWb on line 4
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
38.81 ms | 402 KiB | 8 Q