Although it seems that it would be relatively easy to pull OCaml GC and Frankenstein into another project, I'm not sure if this is really what you would like to do in practice.
The OCaml garbage collector was designed with a functional programming style , and this GC architecture may be responsible for a language such as PHP, which is not commonly used in a functional style.
If you are configured for this, I would suggest either waiting a few months for multicore support to be accepted into the OCaml compiler / runtime, or using one of the various projects currently trying to support multicore OCaml support (the most serious ones are probably this project is people in OCamllabs). Currently, GC OCaml does not have reliable multi-core support, and although in practice this is practically not a problem, some people cannot live without it.
source share