3v4l.org

run code in 300+ PHP versions simultaneously
<?php $zakres_valid = '@^ST-[0-9]{5,8}$@'; $zakres = array(); $st = 'ST-856549'; for($i=0;$i<10;$i++){ $zakres[] = $st; $st++; } var_dump($zakres); for($i=0;$i<10;$i++){ if(!preg_match($zakres_valid, $zakres[$i])){ echo "/".$zakres_valid.", ".$zakres."/"; echo "ERROR. Numer $zakres[$i] z podanego zakresu nie pasuje do wzorca.<br />"; } else { echo "OK"; } } ?>
Output for git.master, git.master_jit, rfc.property-hooks
array(10) { [0]=> string(9) "ST-856549" [1]=> string(9) "ST-856550" [2]=> string(9) "ST-856551" [3]=> string(9) "ST-856552" [4]=> string(9) "ST-856553" [5]=> string(9) "ST-856554" [6]=> string(9) "ST-856555" [7]=> string(9) "ST-856556" [8]=> string(9) "ST-856557" [9]=> string(9) "ST-856558" } OKOKOKOKOKOKOKOKOKOK

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