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.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
// 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 (") // 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 "'"'" <-- this is our output maile vane ko tyo milyo ki nai ?? ae mi"l

preferences:
169.6 ms | 406 KiB | 174 Q