xref: /PHP-7.3/Zend/tests/this_in_eval.phpt (revision b746e698)
1--TEST--
2$this in eval() block
3--FILE--
4<?php
5class C {
6	function foo() {
7		eval('var_dump($this);');
8		eval('var_dump($this);');
9	}
10}
11$x = new C;
12$x->foo();
13--EXPECT--
14object(C)#1 (0) {
15}
16object(C)#1 (0) {
17}
18