3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo join(', ', array_map(function($x) { switch(($x%3!=0) / ($x%5!=0)) { case 0: return 'Fizz'; case INF: return 'Buzz'; case NAN: return 'FizzBuzz'; default: return $x; } }, range(1, 100)));
Output for 7.0.0 - 7.1.0
Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 1, 2, Fizz, 4, Buzz, Fizz, 7, 8, Fizz, Buzz, 11, Fizz, 13, 14, 15, 16, 17, Fizz, 19, Buzz, Fizz, 22, 23, Fizz, Buzz, 26, Fizz, 28, 29, 30, 31, 32, Fizz, 34, Buzz, Fizz, 37, 38, Fizz, Buzz, 41, Fizz, 43, 44, 45, 46, 47, Fizz, 49, Buzz, Fizz, 52, 53, Fizz, Buzz, 56, Fizz, 58, 59, 60, 61, 62, Fizz, 64, Buzz, Fizz, 67, 68, Fizz, Buzz, 71, Fizz, 73, 74, 75, 76, 77, Fizz, 79, Buzz, Fizz, 82, 83, Fizz, Buzz, 86, Fizz, 88, 89, 90, 91, 92, Fizz, 94, Buzz, Fizz, 97, 98, Fizz, Buzz
Output for hhvm-3.12.0
Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 1, 2, Fizz, 4, Fizz, Fizz, 7, 8, Fizz, Fizz, 11, Fizz, 13, 14, Fizz, 16, 17, Fizz, 19, Fizz, Fizz, 22, 23, Fizz, Fizz, 26, Fizz, 28, 29, Fizz, 31, 32, Fizz, 34, Fizz, Fizz, 37, 38, Fizz, Fizz, 41, Fizz, 43, 44, Fizz, 46, 47, Fizz, 49, Fizz, Fizz, 52, 53, Fizz, Fizz, 56, Fizz, 58, 59, Fizz, 61, 62, Fizz, 64, Fizz, Fizz, 67, 68, Fizz, Fizz, 71, Fizz, 73, 74, Fizz, 76, 77, Fizz, 79, Fizz, Fizz, 82, 83, Fizz, Fizz, 86, Fizz, 88, 89, Fizz, 91, 92, Fizz, 94, Fizz, Fizz, 97, 98, Fizz, Fizz
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.6.28
Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 Warning: Division by zero in /in/YkOvW on line 5 1, 2, Fizz, 4, Fizz, Fizz, 7, 8, Fizz, Fizz, 11, Fizz, 13, 14, Fizz, 16, 17, Fizz, 19, Fizz, Fizz, 22, 23, Fizz, Fizz, 26, Fizz, 28, 29, Fizz, 31, 32, Fizz, 34, Fizz, Fizz, 37, 38, Fizz, Fizz, 41, Fizz, 43, 44, Fizz, 46, 47, Fizz, 49, Fizz, Fizz, 52, 53, Fizz, Fizz, 56, Fizz, 58, 59, Fizz, 61, 62, Fizz, 64, Fizz, Fizz, 67, 68, Fizz, Fizz, 71, Fizz, 73, 74, Fizz, 76, 77, Fizz, 79, Fizz, Fizz, 82, 83, Fizz, Fizz, 86, Fizz, 88, 89, Fizz, 91, 92, Fizz, 94, Fizz, Fizz, 97, 98, Fizz, Fizz
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/YkOvW on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/YkOvW on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/YkOvW on line 3
Process exited with code 255.