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/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 1, 2, Buzz, 4, Fizz, Buzz, 7, 8, Buzz, Fizz, 11, Buzz, 13, 14, 15, 16, 17, Buzz, 19, Fizz, Buzz, 22, 23, Buzz, Fizz, 26, Buzz, 28, 29, 30, 31, 32, Buzz, 34, Fizz, Buzz, 37, 38, Buzz, Fizz, 41, Buzz, 43, 44, 45, 46, 47, Buzz, 49, Fizz, Buzz, 52, 53, Buzz, Fizz, 56, Buzz, 58, 59, 60, 61, 62, Buzz, 64, Fizz, Buzz, 67, 68, Buzz, Fizz, 71, Buzz, 73, 74, 75, 76, 77, Buzz, 79, Fizz, Buzz, 82, 83, Buzz, Fizz, 86, Buzz, 88, 89, 90, 91, 92, Buzz, 94, Fizz, Buzz, 97, 98, Buzz, Fizz
Output for 5.3.0 - 5.6.28
Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Warning: Division by zero in /in/cRDIR on line 5 Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, 15, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, 30, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, 45, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, 60, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, 75, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, 90, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, Fizz, 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/cRDIR 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/cRDIR on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/cRDIR on line 3
Process exited with code 255.