3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = [ 'param1' => 3000, 'param2' => 'campaign2' ]; $allowed_param = array ( '3000', '4000', '5000', ); if (isset($_GET['param1']) && $_GET['param2'] == 'campaign1') { if (!in_array($_GET["param1"], $allowed_param)) { //Header('Referer: https://google.com'); //Header('Location: https://camp1.contoso.com/'); die(1); } else { //Header('Referer: https://google.com'); //Header('Location: https://camp1.contoso.com/'); die(2); } } if (isset($_GET['param1']) && $_GET['param2'] == 'campaign2') { if (!in_array($_GET["param1"], $allowed_param)) { //Header('Referer: https://google.com'); //Header('Location: https://camp2.contoso.com/'); die(3); } else { //Header('Referer: https://google.com'); //Header('Location: https://camp2.contoso.com'); die(4); } } die(5);
Output for git.master, git.master_jit, rfc.property-hooks

Process exited with code 4.

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.65 ms | 401 KiB | 8 Q