3v4l.org

run code in 300+ PHP versions simultaneously
<?php function processor(array $callbacks) { // filter by instance clas $callbacks = array_filter(...); // check number of callbacks for custom logic if (count($callbacks) == 1) { return $callbacks(); } // modyfing by a condition if (DEBUG) { $callbacks[] = debug_logger(...); } return compose($callbacks)(); } function processor2(array $callbacks) { // loop with $callbacks[$i] + $result ??? }
Output for git.master_jit, git.master

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
30.98 ms | 405 KiB | 5 Q