3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string='Foo, Bar, Test, X, Y, Z,'; $needle="Bar", "Foo"; $pos=0; $count=0; while(($pos = strpos($string, $needle ,$pos)) !== FALSE){ $count++; $pos++; // This en } echo $count;
Output for 5.3.0 - 5.4.21
Parse error: syntax error, unexpected ',' in /in/WSj42 on line 3
Process exited with code 255.