3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $urzadzenia_ilosc = 10; $zakres = '123-999'; $zakres = str_replace("-","",$zakres); echo "poczatek: ".$zakres."<br />"; $zakres_tmp = array(); for($i=0;$i<$urzadzenia_ilosc;$i++){ $zakres_tmp[] = $zakres; $zakres++; } print_r($zakres_tmp); ?>
based on Ng9fU
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
poczatek: 123999<br />Array ( [0] => 123999 [1] => 124000 [2] => 124001 [3] => 124002 [4] => 124003 [5] => 124004 [6] => 124005 [7] => 124006 [8] => 124007 [9] => 124008 )