3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'Frucht1' => 'Apfel', 'Frucht2' => 'Orange', 'Frucht3' => 'Grape', 'Frucht4' => 'Apfel', 'Frucht5' => 'Apfel'); // Diese Schleife gibt alle Schlüssel des assoziativen // Arrays aus, deren Wert "Apfel" ist. while ($fruit_name = current($array)) { if ($fruit_name == 'Apfel') { echo key($array).'<br />'; } next($array); }
Output for git.master, git.master_jit, rfc.property-hooks
Frucht1<br />Frucht4<br />Frucht5<br />

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