3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generate_nums(int $count) { $n = $count; while ($n--) { yield random_int(1, 100); } } function generate_ten_nums() { yield from generate_nums(5); yield from generate_nums(5); } print_r(iterator_to_array(generate_ten_nums()));
Output for git.master_jit
Array ( [0] => 53 [1] => 79 [2] => 26 [3] => 27 [4] => 96 )
Output for git.master
Array ( [0] => 44 [1] => 24 [2] => 7 [3] => 91 [4] => 25 )

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:
28.44 ms | 406 KiB | 5 Q