3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $myList = ['a', 'b', 'c', 'd', 'e']; print("<pre>".print_r($myList, true)."</pre>"); foreach ($myList as $letters) { echo $letters . '<br>'; } echo '<br><br><br>'; foreach ($myList as $letters) { if ($letters !== 'a') { echo $letters . '<br>'; } } echo '<br><br><br>'; foreach ($myList as $letters) { if ($letters !== 'a' || $letters !== 'b') { echo $letters . '<br>'; } }

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Arrow functions
<pre>Array ( [0] => a [1] => b [2] => c [3] => d [4] => e ) </pre>a<br>b<br>c<br>d<br>e<br><br><br><br>b<br>c<br>d<br>e<br><br><br><br>a<br>b<br>c<br>d<br>e<br>

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