3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?ph $values = str_repeat('?, ', count(array(0 => 1, 1 => 2, 2 => 5))-1) . '?'; echo $values;
Output for 5.4.0 - 5.5.9
Parse error: syntax error, unexpected '$values' (T_VARIABLE) in /in/K3WoY on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.29
<?ph $values = str_repeat('?, ', count(array(0 => 1, 1 => 2, 2 => 5))-1) . '?'; echo $values;