3v4l.org

run code in 500+ PHP versions simultaneously
<?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 %} EOF; for ($i = 0; $i < 100000; $i++) { $esc = '/* '.str_replace(array('*/', "\r\n", "\n", "\r"), array('*//*', "\n", "*/\n/* ", "*/\n/* "), $source)."*/\n"; } echo $esc;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
Branch analysis from position: 3
filename:       /in/PXWDg
function name:  (null)
number of ops:  13
compiled vars:  !0 = $source, !1 = $i, !2 = $esc
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%7B%25+extends+%22layoutb.html.twig%22+%25%7D%0D%0A++%0D%0A++%7B%25+block+titre+%25%7DBienvenue%7B%25+endblock+%25%7D%0D%0A++%0A++++%7B%25+block+jscript+%25%7D%0A++++++%0A++++%2F%2A+%2A%2F%0A++++%7B%25+endblock+%25%7D+%0A++%0A++++%7B%25+block+contenu+%25%7D%0A++++++%3Cdiv+class%3D%22container%22%3E%0A++++++++%3Cdiv+class%3D%22row%22%3E%0A++++++++++%26nbsp%3B%0A++++++++%3C%2Fdiv%3E%0A++++++++%0A++++%3C%2Fdiv%3E%0A++%7B%25+endblock+%25%7D'
   23     1        ASSIGN                                                       !1, 0
          2      > JMP                                                          ->9
   24     3    >   FRAMELESS_ICALL_3                str_replace         ~5      <array>, <array>
          4        OP_DATA                                                      !0
          5        CONCAT                                               ~6      '%2F%2A+', ~5
          6        CONCAT                                               ~7      ~6, '%2A%2F%0A'
          7        ASSIGN                                                       !2, ~7
   23     8        PRE_INC                                                      !1
          9    >   IS_SMALLER                                                   !1, 100000
         10      > JMPNZ                                                        ~10, ->3
   26    11    >   ECHO                                                         !2
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.45 ms | 2529 KiB | 13 Q