xref: /PHP-7.4/Zend/tests/halt03.phpt (revision d33500ee)
1--TEST--
2__HALT_COMPILER() basic test
3--FILE--
4<?php
5
6if (true) {
7	__HALT_COMPILER();
8}
9--EXPECTF--
10Fatal error: __HALT_COMPILER() can only be used from the outermost scope in %shalt03.php on line %d
11