3v4l.org

run code in 300+ PHP versions simultaneously
<?php $runs = $itemcount / 2500; // Around 80 smaller queries for ($i = 0; $i <= $runs; $i++) { $offset = $i * 2500; $sql = "SELECT id,title,price,description FROM items LIMIT 2500,$offset"; $result = $mysqli->query($sql); while ($obj = $result->fetch_object()) { // testing - do nothing } echo "Run: ".$i."<br />"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $itemcount in /in/n957u on line 2 Warning: Undefined variable $mysqli in /in/n957u on line 6 Fatal error: Uncaught Error: Call to a member function query() on null in /in/n957u:6 Stack trace: #0 {main} thrown in /in/n957u on line 6
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:
47.56 ms | 401 KiB | 8 Q