3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_POST = ['checkbox_1' => 1, 'checkbox_4' => 8, 'checkbox_8' => 1]; $result = ''; for($i = 1; $i <= 10; $i++) { if(isset($_POST['checkbox_' , $i])) $result .= ' ' . $i; } echo trim($result);
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.16
Parse error: syntax error, unexpected ',', expecting ']' in /in/jJ8ni on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected '[' in /in/jJ8ni on line 2
Process exited with code 255.