3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $translate = array( 5 => '2000', 5.1 => 'XP', 5.2 => 'XP64', 6 => 'Vista', 6.1 => '7', 6.2 => '8', 6.3 => '8.1' ); $translate[5.2] = 'x'; print_r($translate);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [5] => x [6] => 8.1 )