3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = "194.8.42.0/30"; function ipListFromRange($range){ $parts = explode('/',$range); $exponent = 32-$parts[1].'-'; $count = pow(2,$exponent); $start = ip2long($parts[0]); $end = $start+$count; return array_map('long2ip', range($start, $end) ); } print_r(ipListFromRange($range));
Output for git.master_jit, git.master, rfc.property-hooks
Warning: A non-numeric value encountered in /in/macdb on line 8 Array ( [0] => 194.8.42.0 [1] => 194.8.42.1 [2] => 194.8.42.2 [3] => 194.8.42.3 [4] => 194.8.42.4 )

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:
43.69 ms | 401 KiB | 8 Q