3v4l.org

run code in 300+ PHP versions simultaneously
<?php function compileEchos($value) { $value = preg_replace ('/\{\{\{\s*(.+?)\s*\}\}\}/s', '<?php echo $1; ?>', $value); return preg_replace ('/\{\{\s*(.+?)\s*\}\}/s', "<?php echo htmlentities($1, ENT_QUOTES, 'UTF-8', false); ?>", $value); } compileEchoes('http://www.json.org/post_some_stuff?cross_site+something&somethingelse');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lLG7q
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL_BY_NAME                                       'compileEchoes'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fwww.json.org%2Fpost_some_stuff%3Fcross_site%2Bsomething%26somethingelse'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function compileechos:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lLG7q
function name:  compileEchos
number of ops:  14
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5C%7B%5C%7B%5C%7B%5Cs%2A%28.%2B%3F%29%5Cs%2A%5C%7D%5C%7D%5C%7D%2Fs'
          3        SEND_VAL                                                 '%3C%3Fphp+echo+%241%3B+%3F%3E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        ASSIGN                                                   !0, $1
    5     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%2F%5C%7B%5C%7B%5Cs%2A%28.%2B%3F%29%5Cs%2A%5C%7D%5C%7D%2Fs'
          9        SEND_VAL                                                 '%3C%3Fphp+echo+htmlentities%28%241%2C+ENT_QUOTES%2C+%27UTF-8%27%2C+false%29%3B+%3F%3E'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $3      
         12      > RETURN                                                   $3
    6    13*     > RETURN                                                   null

End of function compileechos

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.43 ms | 1387 KiB | 15 Q