3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 37; for ($i = 0;$i <= 37;$i++) { $str = '\\'.$i.'ryat'; eval('$str = "{$str}";'); var_dump($str); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
string(6) "\0ryat" string(6) "\1ryat" string(6) "\2ryat" string(6) "\3ryat" string(6) "\4ryat" string(6) "\5ryat" string(6) "\6ryat" string(6) "\7ryat" string(6) "\8ryat" string(6) "\9ryat" string(7) "\10ryat" string(7) "\11ryat" string(7) "\12ryat" string(7) "\13ryat" string(7) "\14ryat" string(7) "\15ryat" string(7) "\16ryat" string(7) "\17ryat" string(7) "\18ryat" string(7) "\19ryat" string(7) "\20ryat" string(7) "\21ryat" string(7) "\22ryat" string(7) "\23ryat" string(7) "\24ryat" string(7) "\25ryat" string(7) "\26ryat" string(7) "\27ryat" string(7) "\28ryat" string(7) "\29ryat" string(7) "\30ryat" string(7) "\31ryat" string(7) "\32ryat" string(7) "\33ryat" string(7) "\34ryat" string(7) "\35ryat" string(7) "\36ryat" string(7) "\37ryat"