3v4l.org

run code in 500+ PHP versions simultaneously
<?php for ($i = 0; $i < 10; $i++) { $value = rand(1, 20); if ($value % 2 === 0) { echo "$value is even \n"; } else { echo "$value is odd \n"; } }
Output for rfc.property-hooks
11 is odd 10 is even 1 is odd 5 is odd 5 is odd 14 is even 16 is even 13 is odd 19 is odd 6 is even
Output for git.master_jit
20 is even 3 is odd 8 is even 7 is odd 1 is odd 2 is even 18 is even 4 is even 2 is even 16 is even
Output for git.master
17 is odd 18 is even 7 is odd 19 is odd 19 is odd 17 is odd 4 is even 13 is odd 11 is odd 17 is odd

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:
93.97 ms | 2039 KiB | 4 Q