3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array=array(array('#0kg - 50kg','Questions?','1|2'), array('Yes','','3|4'), array('#51kg - 100kg','Questions?','5|6')); for ($i=0,$j=0;$i<count($array);$i++) { if (strpos($array[$i][0], '#') !== false) { echo preg_replace("/#/",'',$finder[$i][0]); $j++; } }
Output for 5.0.4 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.1.10
Notice: Undefined variable: finder in /in/oCTOl on line 9 Notice: Undefined variable: finder in /in/oCTOl on line 9
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: finder in /in/oCTOl on line 9 Notice: Undefined variable: finder in /in/oCTOl on line 9