phpsmith creates random PHP and KPHP programs to test their compilers and runtimes
MIT License
phpsmith
creates random PHP and KPHP programs to test their compilers and runtimes.
It can create both valid (but very contrived) and invalid programs.
Phpsmith can be executed in two modes: fuzz
, generate
:
fuzz
:
generate
:
go install github.com/quasilyte/phpsmith
Run phpsmith
without arguments to get help output.
Possible commands are:
version print phpsmith version info to stdout and exit
fuzz run fuzzing using the provided configuration
generate generate a program using the provided configuration
fuzz
command examples:
phpsmith fuzz -o ~/phpsmith_out
generate
command examples:
phpsmith generate -seed 1651182107