3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function encodeString($str) { for ($i = 0; $i < 5; ++$i) { $str = base64_decode(strrev($str)); } return $str; } /*var_dump(encodeString('=AFVxIkVWRWYSdlUhRVbwh1YqZkcUVVOhFGbWlXVtFDa')); var_dump(encodeString('=AFVxI1VrRWYSdlUhRVbwh1YqZkcUVVOhFGbWlXVtFDa')); var_dump(encodeString('==AUUFjQWZlWX10VSFmUtBnUWdkUzVlbOd3VGpleVxGZaZ1aKVlV650cidkRoRVb4plUxA3VWZFa0ImVaVlUtFDaW1Ge1Z1aJhnVGFUP')); var_dump(encodeString('==AUUFjQWZFZhJVbShlVrZlaTVEczZlbjVjVxIVWS1GcoZVbSZUWVx2cStWMLJFbSV1Yx82dVJDehFWMaRVVrpVaZZFczZ1aJhnVGFUP')); var_dump(encodeString('==AUUFjQWZlWhJFbOhWYEJUalZEbzZ1akdUTxI1VVxGZoFmRKNXVsR2aS1mSoVVbwZVZWxmVV1GbTFWMKhmUtFzUT12d6ZVb0gnVGFUP')); */ var_dump(encodeString('==AUUFjQWZlVLJVbSl1VthnUTVkWYRlVOBjVWpFMhZEaoV1MoRXVxQ2ViVEMwQmRkVlVxA3cZFjU3JmVKd3VqZ0VVFjSZZlM0gnVGFUP')); var_dump(strrev("Rl zccsm'x ufm sdkfx scgddx tulubfg? Nqtr ybfsc mq ufmq 'tpgnredlxma dckdukgt'? Nkpa lqu klsc bfsc: /ushltqscPzty"));
based on WUY8T

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

Output for Typed properties v2
string(20) "ngToRdSWeIDEnTINAObn" string(113) "ytzPcsqtlhsu/ :csfb cslk uql apkN ?'tgkudkcd amxlderngpt' qmfu qm csfby rtqN ?gfbulut xddgcs xfkds mfu x'msccz lR"
Output for Arrow functions
string(20) "ngToRdSWeIDEnTINAObn" string(113) "ytzPcsqtlhsu/ :csfb cslk uql apkN ?'tgkudkcd amxlderngpt' qmfu qm csfby rtqN ?gfbulut xddgcs xfkds mfu x'msccz lR"
Output for Object typehint
string(20) "ngToRdSWeIDEnTINAObn" string(113) "ytzPcsqtlhsu/ :csfb cslk uql apkN ?'tgkudkcd amxlderngpt' qmfu qm csfby rtqN ?gfbulut xddgcs xfkds mfu x'msccz lR"
Output for Array change keys
string(20) "ngToRdSWeIDEnTINAObn" string(113) "ytzPcsqtlhsu/ :csfb cslk uql apkN ?'tgkudkcd amxlderngpt' qmfu qm csfby rtqN ?gfbulut xddgcs xfkds mfu x'msccz lR"
Output for Lexical anon
string(20) "ngToRdSWeIDEnTINAObn" string(113) "ytzPcsqtlhsu/ :csfb cslk uql apkN ?'tgkudkcd amxlderngpt' qmfu qm csfby rtqN ?gfbulut xddgcs xfkds mfu x'msccz lR"

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