Php version for context | php version for directory

Is there a way to specify a php version for a subdirectory of a website?
For instance.
One context I have:

context /subdirectory {
  location                $VH_ROOT/subdirectory
  allowBrowse             1
  scripthandler {
    add                   lsapi:php74 php
  }
  handler                 php74
}

scripthandler nor handler takes effect and loads the main lsapi app from the config.
If the virtualhost lsapi app is removed, then it loads the default from the main configuration.

I’ve tried different ways but all result in the subdirectory loading the virtualhost php version and not the one specified in the context.