3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $output = '<div class="center"> <table border="0" cellpadding="3" width="600"> <tr><td class="e">ctype functions </td><td class="v">enabled </td></tr> </table><br /> <table>'; $output1 = preg_replace('#<table[^>]*>#', '<table class="table table-striped adminlist">', $output); echo $output1;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<div class="center"> <table class="table table-striped adminlist"> <tr><td class="e">ctype functions </td><td class="v">enabled </td></tr> </table><br /> <table class="table table-striped adminlist">