3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text = 'The value of the field ‘%s’ ' . 'must match the pattern ‘%s’.'; $field = 'field'; $pattern = '@^[a-z0-9_]+$@i'; echo sprintf($text, $field, $pattern);
based on kuLmD
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
The value of the field ‘field’ must match the pattern ‘@^[a-z0-9_]+$@i’.