3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html=<<<HTML <!DOCTYPE html> <html lang="en"> <head> <script> function test(a) { for(let n=0; n < a.length; n++){ console.log(a[n]); } }; test(['one', 'two']); </script> </head> <body> <p>content</p> </body> </html> HTML; var_dump(strip_tags($html));

preferences:
16.21 ms | 402 KiB | 5 Q