3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "1 00:05:50,141 --> 00:05:54,771 This is what was said1 2 00:05:50,141 --> 00:05:54,771 This is what was said2 Boensnglr Dldldlsls 3 00:05:50,141 --> 00:05:54,771 This is what was said3 4 00:05:50,141 --> 00:05:54,771 This is what was said4 LLLL 5 00:05:50,141 --> 00:05:54,771 This is what was said5"; $count = explode(PHP_EOL.PHP_EOL, $str); foreach($count as &$line){ $line = implode(PHP_EOL, array_slice(explode(PHP_EOL, $line), 2)); } echo implode(PHP_EOL.PHP_EOL, $count);
Output for git.master, git.master_jit, rfc.property-hooks
This is what was said1 This is what was said2 Boensnglr Dldldlsls This is what was said3 This is what was said4 LLLL This is what was said5

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