3v4l.org

run code in 300+ PHP versions simultaneously
<?php function implode_wrapper($glue , $pieces) { return (version_compare(PHP_VERSION, '7.3.99', '>')) ? implode($glue, $pieces) : implode($pieces, $glue); } function test_func($a, $b, &$cRef) { $args = func_get_args(); echo __FUNCTION__."(".implode(",",$args) . ")\n"; $cRef+=$a; } $testdata = array( array(1,1), array(2,2), array(3,3), array(4,4) ); if(defined("E_STRICT")) ini_set("error_reporting", ini_get("error_reporting") | E_STRICT); $refTest = 10; foreach($testdata as $test) { $args = array(); foreach($test as $t) $args[] = &$t; $args[] = &$refTest; call_user_func_array("test_func", $args); }
Output for git.master, git.master_jit, rfc.property-hooks
test_func(1,1,10) test_func(2,2,11) test_func(3,3,13) test_func(4,4,16)

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