php2go/fixtures/0015-hoist.php

18 lines
131 B
PHP
Raw Normal View History

<?php
function foo() {
$x = 0;
if (++$x >= 1) {
echo "OK in func";
}
}
$y = 0;
if (++$y >= 1) {
echo "OK in root";
}