3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $required = !empty($field["required"]) ? "form-required" : ""; $buffer = sprintf(" <tr class='form-field %s'> <th scope='row'>%s</th> <td> %s <p>%s</p> </td> </tr> ", $required, "meta", "<input type='text' name='hello'", ""); var_dump($buffer);
Output for 4.3.0 - 7.1.0
string(109) " <tr class='form-field '> <th scope='row'>meta</th> <td> <input type='text' name='hello' <p></p> </td> </tr> "