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-- mcall statement --SKIPIF-- <?php include(__DIR__ . '/../skipif.inc'); ?> --FILE--..

Decoded Output download

--TEST--
mcall statement
--SKIPIF--
<?php include(__DIR__ . '/../skipif.inc'); ?>
--FILE--
<?php
$code =<<<ZEP
function test() {
	a->b();
}
ZEP;

$ir = zephir_parse_file($code, '(eval code)');
var_dump($ir[0]["statements"][0]);
?>
--EXPECT--
array(5) {
  ["type"]=>
  string(5) "mcall"
  ["expr"]=>
  array(7) {
    ["type"]=>
    string(5) "mcall"
    ["variable"]=>
    array(5) {
      ["type"]=>
      string(8) "variable"
      ["value"]=>
      string(1) "a"
      ["file"]=>
      string(11) "(eval code)"
      ["line"]=>
      int(2)
      ["char"]=>
      int(4)
    }
    ["name"]=>
    string(1) "b"
    ["call-type"]=>
    int(1)
    ["file"]=>
    string(11) "(eval code)"
    ["line"]=>
    int(2)
    ["char"]=>
    int(8)
  }
  ["file"]=>
  string(11) "(eval code)"
  ["line"]=>
  int(3)
  ["char"]=>
  int(1)
}

Did this file decode correctly?

Original Code

--TEST--
mcall statement
--SKIPIF--
<?php include(__DIR__ . '/../skipif.inc'); ?>
--FILE--
<?php
$code =<<<ZEP
function test() {
	a->b();
}
ZEP;

$ir = zephir_parse_file($code, '(eval code)');
var_dump($ir[0]["statements"][0]);
?>
--EXPECT--
array(5) {
  ["type"]=>
  string(5) "mcall"
  ["expr"]=>
  array(7) {
    ["type"]=>
    string(5) "mcall"
    ["variable"]=>
    array(5) {
      ["type"]=>
      string(8) "variable"
      ["value"]=>
      string(1) "a"
      ["file"]=>
      string(11) "(eval code)"
      ["line"]=>
      int(2)
      ["char"]=>
      int(4)
    }
    ["name"]=>
    string(1) "b"
    ["call-type"]=>
    int(1)
    ["file"]=>
    string(11) "(eval code)"
    ["line"]=>
    int(2)
    ["char"]=>
    int(8)
  }
  ["file"]=>
  string(11) "(eval code)"
  ["line"]=>
  int(3)
  ["char"]=>
  int(1)
}

Function Calls

None

Variables

None

Stats

MD5 9e396dc34aada1deeb23a1c4c543d488
Eval Count 0
Decode Time 94 ms