3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = array( 'First line<br>second line<br>third line<br>', 'First line <br>second line <br>third line <br>', 'First line<br> second line<br> third line<br> ', 'First line <br> second line <br> third line <br> ', 'First line <br> second line<br>third line <br> ', 'First line <br> second line <br>third line <br> ', 'First line<br>second line <br> third line<br>', 'First line <br> second line<br> third line <br> ', 'First line<br> second line <br> third line<br> ', 'First line<br/>second line<br/>third line<br/>', 'First line <br/>second line <br/>third line <br/>', 'First line<br/> second line<br/> third line<br/> ', 'First line <br/> second line <br/> third line <br/> ', 'First line <br/> second line<br/>third line <br/> ', 'First line <br/> second line <br/>third line <br/> ', 'First line<br/>second line <br/> third line<br/>', 'First line <br/> second line<br/> third line <br/> ', 'First line<br/> second line <br/> third line<br/> ', 'First line<br />second line<br />third line<br />', 'First line <br />second line <br />third line <br />', 'First line<br /> second line<br /> third line<br /> ', 'First line <br /> second line <br /> third line <br /> ', 'First line <br /> second line<br />third line <br /> ', 'First line <br /> second line <br />third line <br /> ', 'First line<br />second line <br /> third line<br />', 'First line <br /> second line<br /> third line <br /> ', 'First line<br /> second line <br /> third line<br /> ', 'First line<br class="hide-on-mobile" /> second line <br class="hide-on-mobile" /> third line', ); foreach ( $tests as $test ) { echo trim( preg_replace( '/(\s)?<br(.*?)>(\s)?/', ' ', $test ) ), PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line First line second line third line

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.89 ms | 408 KiB | 5 Q