Run Zephir as scripting language

Is it possible to run zephir as an scripting language directly inside the apache web directory ? The idea would be to add the .zep extension to apache. After all zep files would be parsed with zephirparsefile and directly compiled. Probatly the compilling progress should just invoked if the .zep file was changed. Somebody has an idea how to do that ?

Try to create your own php script "php runzep.php [scriptname]". Inside, put a compiling process when needed, then include the extension and run it