change to function based php generator for better scope support (but not best performance)
try to support section
support 'true' print, align with nodejs