3v4l.org

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