3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tests = array( '1', 1, 'DGame' ); foreach ($tests as $test) { switch (strtolower($test)) { case 1: print 'Xbox 360 Game' . "\r\n"; break; case 2: print 'GFWL' . "\r\n"; break; case 23: print 'Xbox Live Arcade' . "\r\n"; break; case 62: print 'Windows 8' . "\r\n"; break; case 'dgame': print 'Xbox One Game' . "\r\n"; break; case 'dapp': print 'Xbox One App' . "\r\n"; break; } }
based on R6Hls
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Xbox 360 Game Xbox 360 Game Xbox One Game
Output for hhvm-3.10.0

Process exited with code 153.