3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hello = '?' . str_repeat(' ,?', $nbColumns - 1); echo $hello;
Output for 5.2.5 - 7.2.0
Notice: Undefined variable: nbColumns in /in/OUUYP on line 3 Warning: str_repeat(): Second argument has to be greater than or equal to 0 in /in/OUUYP on line 3 ?
Output for 5.0.4 - 5.2.4
Notice: Undefined variable: nbColumns in /in/OUUYP on line 3 Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /in/OUUYP on line 3 ?
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: nbColumns in /in/OUUYP on line 3 Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /in/OUUYP on line 3 ?
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: nbColumns in /in/OUUYP on line 3 Warning: str_repeat() [http://www.php.net/function.str-repeat]: Second argument has to be greater than or equal to 0. in /in/OUUYP on line 3 ?