3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $zakres_valid = '/^[A-Za-z\/]{1,5}-[0-9]{5,8}$/'; $zakres = 'ST-12345'; if(!preg_match($zakres_valid, $zakres)){ echo "/".$zakres_valid.", ".$zakres."/"; echo "ERROR. Numer $zakres[$i] z podanego zakresu nie pasuje do wzorca.<br />"; } else { echo "OK"; } ?>
based on abpmW
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
OK
Output for hhvm-3.10.0

Process exited with code 153.