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' ); print_r($translate);
Output for 4.3.0 - 7.1.0
Array ( [5] => XP64 [6] => 8.1 )