3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = []; $a[0] = "<table style='color:; text-align: left;'> <tr> <td>Processor"; $a[1] = "</td> <td> Intel Core 2 Duo - E8400"; $a[2] = "</td> </tr> <tr> <td> Clockspeed"; $a[3] = "</td> <td> 3.0 GHz"; $a[4] = "</td> </tr> <tr> <td> Memory"; $a[5] = "</td> <td> 4 GB"; $a[6] = "</td> </tr> <tr> <td> Harddisk"; $a[7] = "</td> <td> 250 GB"; $a[8] = "</td> </tr> <tr> <td> Video-adapter"; $a[9] = "</td> <td> VGA, Display"; $a[10] = "</td> </tr> <tr> <td> Netwerkcard"; $a[11] = "</td><td> 1000 mbps LAN"; $a[12] = "</td> </tr> <tr> <td> Optical drive"; $a[13] = "</td><td> DVD-Rewriter"; $a[14] = "</td> </tr> <tr> <td> Operating system"; $a[15] = "</td><td> Windows7 or 10 Pro"; $a[16] = "</td> </tr> <tr> <td> Warranty"; $a[17] = "</td><td> 2 years</td></tr></table>"; foreach ($a as &$e) { $e = trim($e); } $joined = join($a); $stripped = strip_tags($joined,"<td>"); $replaced = str_replace(["<td>","</td>"],["*",""],$stripped); $arr = explode("*",$replaced); array_shift($arr); print_r($arr);

preferences:
53.7 ms | 402 KiB | 5 Q