3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $js_date = "12.12.2013"; $js_time = "10.00"; $string = preg_replace( '~a~', #your pattern '<a href="$0" title="$0">$0</a>', 'a, b, a, b, a, b, a' #your text-area ); echo $string; #<a href="a" title="a">a</a>, b, <a href="a" title="a">a</a>, b, <a href="a" title="a">a</a>, b, <a href="a" title="a">a</a> $email_message ="\n Lugupeetud klient, \n \n teile broneeritud ülevaatuse aeg on ".$js_date." kell ".$js_time.". \n ABC Tehno asub aadressil Sõpruse pst 27, tel: 6 999 227, email: ".$string.".".\n Tuletame meelde, et hilinemisel kaotab broneering kehtivuse. \n \n Kohtumiseni, \n ABC Tehno"; echo $email_message; ?>
Output for 5.4.0 - 5.5.6
Parse error: syntax error, unexpected 'Tuletame' (T_STRING) in /in/EpC2o on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_STRING in /in/EpC2o on line 12
Process exited with code 255.