3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dat = getrusage(); echo $dat["ru_nswap"]; // number of swaps echo "\n"; echo $dat["ru_majflt"]; // number of page faults echo "\n"; echo $dat["ru_utime.tv_sec"]; // user time used (seconds) echo "\n"; echo $dat["ru_utime.tv_usec"]; echo "\n";

preferences:
56.01 ms | 402 KiB | 5 Q