3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $strselvaluelist = '4|17'; if(!empty($strselvaluelist)){ echo 0; if(strstr($strselvaluelist,4)){ echo 1; if(!strstr($strselvaluelist,17 )){ $strselvaluelist.='|17'; echo 2; } } var_dump($strselvaluelist);
Output for 5.4.0 - 5.4.20
Parse error: syntax error, unexpected end of file in /in/vfMgF on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end in /in/vfMgF on line 12
Process exited with code 255.