3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new \DomDocument(); $doc->loadHTML(' <script> $().ready(function() {}); </script> ', LIBXML_HTML_NODEFDTD | LIBXML_HTML_NOIMPLIED); echo $doc->saveHTML(null); ?>
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.5 - 7.2.33, 7.3.16 - 7.3.23, 7.4.0 - 7.4.11, 8.0.0alpha1 - rc2
<script> $().ready(function() {}); </script>