3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<div class="cc"> Explore the use of simple <a class="keyword_w_elaboration">technologies</a> <div class="elaboration" style="text-decoration:none"> <div class="elaboration_controls"></div> <div class="elaboration_content"> <div class="keyword_elaboration_title">technologies</div> things that extend human abilities (e.g., axe) &nbsp; </div> </div> to extend their abilities </div>'; $text = strip_tags($html); $text = html_entity_decode($text); $text = trim(str_replace("\xc2\xa0", ' ', $text)); $text = preg_replace('/(\s\s+|\n|\t)/', ' ', $text); echo $text;
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Explore the use of simple technologies technologies things that extend human abilities (e.g., axe) to extend their abilities

preferences:
134.75 ms | 403 KiB | 212 Q