3v4l.org

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