Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Standalone Tag --DESCRIPTION-- Standalone lines should be removed from the templa..

Decoded Output download

--TEST--
Standalone Tag
--DESCRIPTION--
Standalone lines should be removed from the template.
--SKIPIF--
<?php if(!extension_loaded('mustache')) die('skip '); ?>
--FILE--
<?php
$test = array (
  'name' => 'Standalone Tag',
  'desc' => 'Standalone lines should be removed from the template.',
  'data' => 
  array (
  ),
  'template' => 'Begin.
{{=@ @=}}
End.
',
  'expected' => 'Begin.
End.
',
);
$mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
Begin\.\s*End\.\s*

Did this file decode correctly?

Original Code

--TEST--
Standalone Tag
--DESCRIPTION--
Standalone lines should be removed from the template.
--SKIPIF--
<?php if(!extension_loaded('mustache')) die('skip '); ?>
--FILE--
<?php
$test = array (
  'name' => 'Standalone Tag',
  'desc' => 'Standalone lines should be removed from the template.',
  'data' => 
  array (
  ),
  'template' => 'Begin.
{{=@ @=}}
End.
',
  'expected' => 'Begin.
End.
',
);
$mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
Begin\.\s*End\.\s*

Function Calls

extension_loaded 1

Variables

$test [{'key': 'name', 'value': 'Standalone Tag'}, {'key': 'desc', 'value': 'Standalone lines should be removed from the template.'}, {'key': 'data', 'value': []}, {'key': 'template', 'value': 'Begin.\n{{=@ @=}}\nEnd.\n'}, {'key': 'expected', 'value': 'Begin.\nEnd.\n'}]

Stats

MD5 ab053ef786de38f2f455cdd992483523
Eval Count 0
Decode Time 123 ms