3v4l.org

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