3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('samlp:aExtensions', null, array('ext:aReferer', null, array('ext:aRefererScheme', null, "on" == $_SERVER["HTTPS"] ? "https" : "http"), array('ext:aRefererHost', null, $_SERVER["SERVER_NAME"]), array('ext:aRefererPort', null, $_SERVER["SERVER_PORT"]), ), ); $b = array('samlp:bExtensions', null, array('ext:bReferer', null, array('ext:bRefererScheme', null, "on" == $_SERVER["HTTPS"] ? "https" : "http"), array('ext:bRefererHost', null, $_SERVER["SERVER_NAME"]), array('ext:bRefererPort', null, $_SERVER["SERVER_PORT"]), ), ); //$c = array_merge($a, $b); $c = $a + $b; var_dump($c);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "HTTPS" in /in/AMCWT on line 4 Warning: Undefined array key "SERVER_NAME" in /in/AMCWT on line 5 Warning: Undefined array key "SERVER_PORT" in /in/AMCWT on line 6 Warning: Undefined array key "HTTPS" in /in/AMCWT on line 11 Warning: Undefined array key "SERVER_NAME" in /in/AMCWT on line 12 Warning: Undefined array key "SERVER_PORT" in /in/AMCWT on line 13 array(3) { [0]=> string(17) "samlp:aExtensions" [1]=> NULL [2]=> array(5) { [0]=> string(12) "ext:aReferer" [1]=> NULL [2]=> array(3) { [0]=> string(18) "ext:aRefererScheme" [1]=> NULL [2]=> string(4) "http" } [3]=> array(3) { [0]=> string(16) "ext:aRefererHost" [1]=> NULL [2]=> NULL } [4]=> array(3) { [0]=> string(16) "ext:aRefererPort" [1]=> NULL [2]=> NULL } } }

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:
35.71 ms | 403 KiB | 8 Q