3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 100; $i++) { echo (($i % 3 ? "" : "Fizz").($i % 5 ? "" : "Byuzz")) ?: $i; }
Output for 5.3.0 - 7.1.0
FizzByuzz12Fizz4ByuzzFizz78FizzByuzz11Fizz1314FizzByuzz1617Fizz19ByuzzFizz2223FizzByuzz26Fizz2829FizzByuzz3132Fizz34ByuzzFizz3738FizzByuzz41Fizz4344FizzByuzz4647Fizz49ByuzzFizz5253FizzByuzz56Fizz5859FizzByuzz6162Fizz64ByuzzFizz6768FizzByuzz71Fizz7374FizzByuzz7677Fizz79ByuzzFizz8283FizzByuzz86Fizz8889FizzByuzz9192Fizz94ByuzzFizz9798Fizz
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/DIfTJ on line 4
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 ':' in /in/DIfTJ on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/DIfTJ on line 4
Process exited with code 255.