3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $source = <<<EOF {% extends "layoutb.html.twig" %}\r \r {% block titre %}Bienvenue{% endblock %}\r {% block jscript %} /* */ {% endblock %} {% block contenu %} <div class="container"> <div class="row"> &nbsp; </div> </div> {% endblock %} {% extends "layoutb.html.twig" %}\r \r {% block titre %}Bienvenue{% endblock %}\r {% block jscript %} /* */ {% endblock %} {% block contenu %} <div class="container"> <div class="row"> &nbsp; </div> </div> {% endblock %} {% extends "layoutb.html.twig" %}\r \r {% block titre %}Bienvenue{% endblock %}\r {% block jscript %} /* */ {% endblock %} {% block contenu %} <div class="container"> <div class="row"> &nbsp; </div> </div> {% endblock %} {% extends "layoutb.html.twig" %}\r \r {% block titre %}Bienvenue{% endblock %}\r {% block jscript %} /* */ {% endblock %} {% block contenu %} <div class="container"> <div class="row"> &nbsp; </div> </div> {% endblock %} {% extends "layoutb.html.twig" %}\r \r {% block titre %}Bienvenue{% endblock %}\r {% block jscript %} /* */ {% endblock %} {% block contenu %} <div class="container"> <div class="row"> &nbsp; </div> </div> {% endblock %} {% extends "layoutb.html.twig" %}\r \r {% block titre %}Bienvenue{% endblock %}\r {% block jscript %} /* */ {% endblock %} {% block contenu %} <div class="container"> <div class="row"> &nbsp; </div> </div> {% endblock %} {% extends "layoutb.html.twig" %}\r \r {% block titre %}Bienvenue{% endblock %}\r {% block jscript %} /* */ {% endblock %} {% block contenu %} <div class="container"> <div class="row"> &nbsp; </div> </div> {% endblock %} {% extends "layoutb.html.twig" %}\r \r {% block titre %}Bienvenue{% endblock %}\r {% block jscript %} /* */ {% endblock %} {% block contenu %} <div class="container"> <div class="row"> &nbsp; </div> </div> {% endblock %} {% extends "layoutb.html.twig" %}\r \r {% block titre %}Bienvenue{% endblock %}\r {% block jscript %} /* */ {% endblock %} {% block contenu %} <div class="container"> <div class="row"> &nbsp; </div> </div> {% endblock %} EOF; for ($i = 0; $i < 10000; $i++) { $esc = '/* '.strtr($source, array('*/' => '*//*', "\r\n" => "*/\n/* ", "\r" => "*/\n/* ", "\n" => "*/\n/* "))."*/\n"; } echo $esc;
Output for 5.4.0 - 7.2.0
/* {% extends "layoutb.html.twig" %}*/ /* */ /* {% block titre %}Bienvenue{% endblock %}*/ /* */ /* {% block jscript %}*/ /* */ /* /* *//**/ /* {% endblock %} */ /* */ /* {% block contenu %}*/ /* <div class="container">*/ /* <div class="row">*/ /* &nbsp;*/ /* </div>*/ /* */ /* </div>*/ /* {% endblock %}*/ /* {% extends "layoutb.html.twig" %}*/ /* */ /* {% block titre %}Bienvenue{% endblock %}*/ /* */ /* {% block jscript %}*/ /* */ /* /* *//**/ /* {% endblock %} */ /* */ /* {% block contenu %}*/ /* <div class="container">*/ /* <div class="row">*/ /* &nbsp;*/ /* </div>*/ /* */ /* </div>*/ /* {% endblock %}*/ /* {% extends "layoutb.html.twig" %}*/ /* */ /* {% block titre %}Bienvenue{% endblock %}*/ /* */ /* {% block jscript %}*/ /* */ /* /* *//**/ /* {% endblock %} */ /* */ /* {% block contenu %}*/ /* <div class="container">*/ /* <div class="row">*/ /* &nbsp;*/ /* </div>*/ /* */ /* </div>*/ /* {% endblock %}*/ /* {% extends "layoutb.html.twig" %}*/ /* */ /* {% block titre %}Bienvenue{% endblock %}*/ /* */ /* {% block jscript %}*/ /* */ /* /* *//**/ /* {% endblock %} */ /* */ /* {% block contenu %}*/ /* <div class="container">*/ /* <div class="row">*/ /* &nbsp;*/ /* </div>*/ /* */ /* </div>*/ /* {% endblock %}*/ /* {% extends "layoutb.html.twig" %}*/ /* */ /* {% block titre %}Bienvenue{% endblock %}*/ /* */ /* {% block jscript %}*/ /* */ /* /* *//**/ /* {% endblock %} */ /* */ /* {% block contenu %}*/ /* <div class="container">*/ /* <div class="row">*/ /* &nbsp;*/ /* </div>*/ /* */ /* </div>*/ /* {% endblock %}*/ /* {% extends "layoutb.html.twig" %}*/ /* */ /* {% block titre %}Bienvenue{% endblock %}*/ /* */ /* {% block jscript %}*/ /* */ /* /* *//**/ /* {% endblock %} */ /* */ /* {% block contenu %}*/ /* <div class="container">*/ /* <div class="row">*/ /* &nbsp;*/ /* </div>*/ /* */ /* </div>*/ /* {% endblock %}*/ /* {% extends "layoutb.html.twig" %}*/ /* */ /* {% block titre %}Bienvenue{% endblock %}*/ /* */ /* {% block jscript %}*/ /* */ /* /* *//**/ /* {% endblock %} */ /* */ /* {% block contenu %}*/ /* <div class="container">*/ /* <div class="row">*/ /* &nbsp;*/ /* </div>*/ /* */ /* </div>*/ /* {% endblock %}*/ /* {% extends "layoutb.html.twig" %}*/ /* */ /* {% block titre %}Bienvenue{% endblock %}*/ /* */ /* {% block jscript %}*/ /* */ /* /* *//**/ /* {% endblock %} */ /* */ /* {% block contenu %}*/ /* <div class="container">*/ /* <div class="row">*/ /* &nbsp;*/ /* </div>*/ /* */ /* </div>*/ /* {% endblock %}*/ /* {% extends "layoutb.html.twig" %}*/ /* */ /* {% block titre %}Bienvenue{% endblock %}*/ /* */ /* {% block jscript %}*/ /* */ /* /* *//**/ /* {% endblock %} */ /* */ /* {% block contenu %}*/ /* <div class="container">*/ /* <div class="row">*/ /* &nbsp;*/ /* </div>*/ /* */ /* </div>*/ /* {% endblock %}*/