3v4l.org

run code in 300+ PHP versions simultaneously
<!-- Má posta á hvaða síðu sem er innan WP vefsins --> <form method="post" action=""> <!-- POST request verður alltaf að innihalda field með heitinu 'afylling' --> <input type="hidden" name="afylling" /> <!-- $_SESSION['afylling']['errors'] er array af strengjum sem innihalda villuskilaboð --> <!-- Default (engar villur) er tómur array --> <?php foreach ($_SESSION['afylling']['errors'] as $error) : ?> <span style="color: red; display:block;"><?= $error; ?></span> <?php endforeach ?> <!-- Fyrra skref áfyllingar --> <!-- step er default 1 --> <?php if($_SESSION['afylling']['step'] == 1) : ?> <!-- Innbyggt WP validation --> <?php wp_nonce_field('afylling_step1'); ?> <!-- Required fields --> <input type="text" placeholder="Símanúmer" name="afylling_simanumer" value="<?= $_SESSION['afylling']['data']['simanumer']; ?>" /> <input type="text" placeholder="Upphæð" name="afylling_upphaed" value="<?= $_SESSION['afylling']['data']['upphaed']; ?>" /> <!-- Seinna skref áfyllingar, ef fyrra skref tekst --> <?php elseif($_SESSION['afylling']['step'] == 2) : ?> <!-- Innbyggt WP validation --> <?php wp_nonce_field('afylling_step2'); ?> <!-- Required fields --> <input type="text" placeholder="Kortanúmer" name="afylling_kortanumer" /> <input type="text" placeholder="MM" name="afylling_mm" /> <input type="text" placeholder="ÁÁ" name="afylling_aa" /> <input type="text" placeholder="CVC" name="afylling_cvc" /> <?php endif ?> <!-- Skiptir ekki máli hvert value er hér --> <input type="submit" name="submit" value="Submit" /> </form>
Output for git.master, git.master_jit
<!-- Má posta á hvaða síðu sem er innan WP vefsins --> <form method="post" action=""> <!-- POST request verður alltaf að innihalda field með heitinu 'afylling' --> <input type="hidden" name="afylling" /> <!-- $_SESSION['afylling']['errors'] er array af strengjum sem innihalda villuskilaboð --> <!-- Default (engar villur) er tómur array --> Warning: Undefined global variable $_SESSION in /in/2JDKY on line 9 Warning: Trying to access array offset on value of type null in /in/2JDKY on line 9 Warning: Trying to access array offset on value of type null in /in/2JDKY on line 9 Warning: foreach() argument must be of type array|object, null given in /in/2JDKY on line 9 <!-- Fyrra skref áfyllingar --> <!-- step er default 1 --> Warning: Undefined global variable $_SESSION in /in/2JDKY on line 15 Warning: Trying to access array offset on value of type null in /in/2JDKY on line 15 Warning: Trying to access array offset on value of type null in /in/2JDKY on line 15 Warning: Undefined global variable $_SESSION in /in/2JDKY on line 25 Warning: Trying to access array offset on value of type null in /in/2JDKY on line 25 Warning: Trying to access array offset on value of type null in /in/2JDKY on line 25 <!-- Skiptir ekki máli hvert value er hér --> <input type="submit" name="submit" value="Submit" /> </form>
Output for rfc.property-hooks
<!-- Má posta á hvaða síðu sem er innan WP vefsins --> <form method="post" action=""> <!-- POST request verður alltaf að innihalda field með heitinu 'afylling' --> <input type="hidden" name="afylling" /> <!-- $_SESSION['afylling']['errors'] er array af strengjum sem innihalda villuskilaboð --> <!-- Default (engar villur) er tómur array --> Warning: Undefined global variable $_SESSION in /in/2JDKY on line 9 Warning: Trying to access array offset on null in /in/2JDKY on line 9 Warning: Trying to access array offset on null in /in/2JDKY on line 9 Warning: foreach() argument must be of type array|object, null given in /in/2JDKY on line 9 <!-- Fyrra skref áfyllingar --> <!-- step er default 1 --> Warning: Undefined global variable $_SESSION in /in/2JDKY on line 15 Warning: Trying to access array offset on null in /in/2JDKY on line 15 Warning: Trying to access array offset on null in /in/2JDKY on line 15 Warning: Undefined global variable $_SESSION in /in/2JDKY on line 25 Warning: Trying to access array offset on null in /in/2JDKY on line 25 Warning: Trying to access array offset on null in /in/2JDKY on line 25 <!-- Skiptir ekki máli hvert value er hér --> <input type="submit" name="submit" value="Submit" /> </form>

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