3v4l.org

run code in 300+ PHP versions simultaneously
// aghi ko ali forget // // maile print garna khojeko chai, <li class='hello'>, but see // first ma la // you know yesto garna paudaina, $string = 'hello'.'world', thaha cha hai?, correct or // hooooooo // same kura tala bhayo // but we want to print <li class='hello'> // so tehi bhayera, to make it easy, we can write using double quotes (") <?php echo '<li class='hello'>'; ?> // this would be wrong, because ' le start garyo ani ' le nai end garyo // but " ko case ma agadi " cha ani laasst ma matra " cha, ty bich ma ' corect corrrect, didi le yestai hernu bhaneko // try to realize things, like kun le quote start gareko is very important, ok ask "'\"\"' "lfkjsfjss" /ax/ this is valid "'""'"// this is invalid, hera hamilai tyo mix garna ko lagi, """", yesto aune bittikai bigryo, matlab " le start garyo ani " le end garyo "" yaha bicha ma kehi ni chaina "", this is nvalid syntax "" . "" // this is valid syntax because concat operator // so direct mix and match garna mildian, same quotes chai " '''''''''' " // yo chai valid cha, because start ma " cha ani ekdam last ma " cha // so veryv er importatnwhat you start with and end with // aba timro quesstion if I want to echo "'"'" I have to <?php echo "'" . '"' . "'"; ?> <-- this is our output maile vane ko tyo milyo ki nai ?? ae mi"l
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected 'hello' (T_STRING), expecting ',' or ';' in /in/Unl9m on line 11
Process exited with code 255.

preferences:
189.08 ms | 1395 KiB | 36 Q