3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 1, 2, 3 ); for ($i = 1; $i <= 30;) { echo $i . ": "; echo count($array) % $i++ . "\n"; //echo $array[] . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
1: 0 2: 1 3: 0 4: 3 5: 3 6: 3 7: 3 8: 3 9: 3 10: 3 11: 3 12: 3 13: 3 14: 3 15: 3 16: 3 17: 3 18: 3 19: 3 20: 3 21: 3 22: 3 23: 3 24: 3 25: 3 26: 3 27: 3 28: 3 29: 3 30: 3

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.89 ms | 401 KiB | 8 Q