3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_1($arg_1, $arg_2) { return $arg_1 + $arg_2; } $a = 1; $b = 2; $result = test_1($a, $b); echo $result; $test_array = [1,3,5,7]; foreach($test_array as &$var){ $result_1 = $var; $result_2 = &$result_1; $result_2 = $var + 1; echo 'result_1 = '.$result_1.' var = '.$var."\n\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
3result_1 = 2 var = 1 result_1 = 4 var = 3 result_1 = 6 var = 5 result_1 = 8 var = 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:
44.47 ms | 401 KiB | 8 Q