3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(); while (count($array) < 10) { $value = rand(1, 20); if (!in_array($value, $array)) { $array[] = $value; if ($value % 2 === 0) { echo "$value is even \n"; } else { echo "$value is odd \n"; } } }
Output for git.master
11 is odd 14 is even 2 is even 20 is even 10 is even 17 is odd 3 is odd 9 is odd 15 is odd 16 is even
Output for git.master_jit
11 is odd 16 is even 6 is even 12 is even 14 is even 17 is odd 20 is even 19 is odd 4 is even 5 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:
52.49 ms | 406 KiB | 5 Q