3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = "My account_3.3.2-sdas"; //echo $var = substr($var,0,(strrpos($var,"_3"))); $array_main["pos1"]["sub1"]["total"] = 0; $arr["pos1"]["sub1"]["total"]++; //echo $arr["pos1"]["sub1"]["total"]; //array_main["pos1"]["sub1"]["total]++; $bol = array_key_exists("pos1",$array_main); echo $bol;
based on ep807
Output for 5.3.0 - 7.3.0beta1
Notice: Undefined variable: arr in /in/KNuqd on line 8 Notice: Undefined index: pos1 in /in/KNuqd on line 8 Notice: Undefined index: sub1 in /in/KNuqd on line 8 Notice: Undefined index: total in /in/KNuqd on line 8 1
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: arr in /in/KNuqd on line 8 Notice: Undefined index: pos1 in /in/KNuqd on line 8 Notice: Undefined index: sub1 in /in/KNuqd on line 8 Notice: Undefined index: total in /in/KNuqd on line 8 1
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: arr in /in/KNuqd on line 8 Notice: Undefined index: pos1 in /in/KNuqd on line 8 Notice: Undefined index: sub1 in /in/KNuqd on line 8 Notice: Undefined index: total in /in/KNuqd on line 8 1