3v4l.org

run code in 300+ PHP versions simultaneously
<?php function WTF($arg) { // Payload: count the number of its own calls global $c; ++$c; // payload could be anything // use global to extract values global $collection; if (!isset($collection)) { $collection = []; } $collection[] = $arg; // also possible // $r = __FUNCTION__; // return $r(...) return __FUNCTION__; } WTF(1)(2)(4)(8)(16); echo "WTF was called $c times\n"; print_r($collection); ?>

preferences:
51.01 ms | 854 KiB | 5 Q