3v4l.org

run code in 300+ 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 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/PXWDg
function name:  (null)
number of ops:  16
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                                                      ->12
   24     3    >   INIT_FCALL                                               'str_replace'
          4        SEND_VAL                                                 <array>
          5        SEND_VAL                                                 <array>
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        CONCAT                                           ~6      '%2F%2A+', $5
          9        CONCAT                                           ~7      ~6, '%2A%2F%0A'
         10        ASSIGN                                                   !2, ~7
   23    11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, 100000
         13      > JMPNZ                                                    ~10, ->3
   26    14    >   ECHO                                                     !2
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.45 ms | 1004 KiB | 14 Q