3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = '12.34.56'; var_dump($input); $version = $version{0} = $version = $input; var_dump($version);
Output for 5.2.6 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(8) "12.34.56" string(1) "1"
Output for 4.3.3 - 5.2.5
string(8) "12.34.56" string(8) "12.34.56"
Output for 4.3.0 - 4.3.2
string(8) "12.34.56" NULL