3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = ''; for ($i = 0; $i < 4; $i++) { $string .= "Happy birthday "; if ($i != 2) { $string .= "to you!\n"; } else { $string .= "dear %s!\n"; } } print sprintf($string, 'Paul');
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Happy birthday to you! Happy birthday to you! Happy birthday dear Paul! Happy birthday to you!
Output for hhvm-3.10.0

Process exited with code 153.