3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function reverse($str) { $ret = ''; for ($i = mb_strlen($str)-1; $i >= 0; $i--) { $ret .= mb_substr($str, $i, 1); } return $ret; } function oddList($x) { return implode(', ', range(1, $x, 2)); } echo reverse('ābc');

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

Output for Array change keys
cbā
Output for Lexical anon
cbā
Output for Typed properties
cbā

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