3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $city = "Pune"; $pin= 413112; $str3= "Sachin"; echo "I live in city $city $pin."; $str1 = $city. ",".$pin; $str2 .= $str3; echo "$str1.$str2 ";
Output for 5.0.4 - 7.1.0
I live in city Pune 413112. Notice: Undefined variable: str2 in /in/tSbZL on line 7 Pune,413112.Sachin
Output for 4.3.0 - 5.0.3
I live in city Pune 413112. Notice: Undefined variable: str2 in /in/tSbZL on line 7 Pune,413112.Sachin