3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a2 = array( '{DOMEA}' => 'AAAAAA', '{DOMEB}' => 'BBBBBBB', ); $a3 = ' <h1>title</h1> {DOMEA} <hr> {DOMEB} '; echo str_replace(array_keys($a2), array_values($a2), $a3); echo strstr($a2,$a3);
Output for git.master, git.master_jit, rfc.property-hooks
<h1>title</h1> AAAAAA <hr> BBBBBBB Fatal error: Uncaught TypeError: strstr(): Argument #1 ($haystack) must be of type string, array given in /in/EM1D9:16 Stack trace: #0 /in/EM1D9(16): strstr(Array, '\n <h1>title<...') #1 {main} thrown in /in/EM1D9 on line 16
Process exited with code 255.

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