3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function add_single(int $itemOne, int $itemTwo) : void { echo $itemOne + $itemTwo, "\n"; } public function add_Multiples(int $itemOne, array $items) : void { $intI = 0; $intCount_Selection = count( $items ) - 1; while( $intI <= $intCount_Selection ) { $this->add_single( $itemOne, (int)$items[$intI] ); $intI++; } } } $objAdder = new foo(); $objAdder->add_Single(2,3); $arrItems = array( 2, 5 ); $objAdder->add_Multiples(2, $arrItems);
Output for git.master, git.master_jit, rfc.property-hooks
5 4 7

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:
32.34 ms | 401 KiB | 8 Q