3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 10; $decrease_count = function() use (&$count) { $count--; }; $decrease_count(); echo $count; $added_records = 0; for ($i = 0; $i < 11; ++$i) call_user_func(function() use (&$added_records) { $added_records++; echo "ADDED RECORDS LOCAL: " . $added_records . "<br>"; }); echo "<h2>Added " . $added_records . " records</h2>";
Output for git.master, git.master_jit, rfc.property-hooks
9ADDED RECORDS LOCAL: 1<br>ADDED RECORDS LOCAL: 2<br>ADDED RECORDS LOCAL: 3<br>ADDED RECORDS LOCAL: 4<br>ADDED RECORDS LOCAL: 5<br>ADDED RECORDS LOCAL: 6<br>ADDED RECORDS LOCAL: 7<br>ADDED RECORDS LOCAL: 8<br>ADDED RECORDS LOCAL: 9<br>ADDED RECORDS LOCAL: 10<br>ADDED RECORDS LOCAL: 11<br><h2>Added 11 records</h2>

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:
70.33 ms | 402 KiB | 8 Q