3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
// 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
based on fhnGb
Output for 5.6.0 - 5.6.30, 7.0.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.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/Unl9m:11 Stack trace: #0 {main}
Process exited with code 255.