3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reg_exp = "/(^<table.+.(?:[n])?(?:.+)?)(<tbody>)/s"; $replace_with = '/1<thead>'; $input = '<table class="table table-bordered table-responsive" style="width: 100%;"> <tbody>'; $final = preg_replace($reg_exp, $replace_with, $input); var_dump($final);
Output for git.master_jit, git.master, rfc.property-hooks
string(9) "/1<thead>"

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