3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string.='testing'; $string.='produk_kemeja'; $pos=0; $count=0; while(($pos = strpos($string, 'produk_',$pos)) !== FALSE){ if((strpos($string, 'produk_')) !== FALSE){ echo $string; } $count++; $pos++; // This ends } echo $count;
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: string in /in/4UtBV on line 2 testingproduk_kemeja1
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: string in /in/4UtBV on line 2 testingproduk_kemeja1