3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = '1.2.3'; 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(5) "1.2.3" string(1) "1"
Output for 4.3.3 - 5.2.5
string(5) "1.2.3" string(5) "1.2.3"
Output for 4.3.0 - 4.3.2
string(5) "1.2.3" NULL