3v4l.org

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