Hello World in various languages [Python / PHP / Java / Perl / Ruby]

Java

public class Main {
	public static void main (String[] args) {
		System.out.println("Hello World");
	}
}

Perl

#!/usr/bin/perl
print "Hello World";

PHP

<?php
echo "Hello World";
?>

Python

print "Hello World"

Python3

print ("Hello World");

Ruby

#!/usr/bin/ruby
puts "Hello World";

Recommended Posts

Hello World in various languages [Python / PHP / Java / Perl / Ruby]
Java VS PHP VS Python VS Ruby
About Perl, Python, PHP, Ruby
2014 Web Application Framework Trends (PHP / Java / Ruby / Python / Perl)
Let's do "Hello World" in 40 languages! !!
cout << "Hello, World! \ N" in python
How to display Hello world in python
[Scraping Summary] | Python Node.js PHP Ruby Go VBA | Scraping Yahoo! Top in 6 languages
Grouping combination in Python / Ruby / PHP / Golang (Go)
Sorting AtCoder ARC 086 C hashes to solve in Ruby, Perl, Java and Python
Solving in Ruby, Perl, Java, and Python AtCoder ARC 066 C Iterative Squares Hash
HMAC in various languages
Handle prime numbers in Python / Ruby / PHP / Golang (Go)
Let's write Python, Ruby, PHP, Java, JavaScript side respectively
How to handle JSON in Ruby, Python, JavaScript, PHP
Five languages basic grammar comparison (C #, Java, Python, Ruby, Kotlin)
Overlapping combinations with limits in Python / Ruby / PHP / Golang (Go)
Programming language in "Hello World"
Solving with Ruby, Perl, Java and Python AtCoder ATC 002 A
Hello World in GO language
You walk in a spiral in a world of rising cross walls (regularity, Python / Ruby / C / C # / Java)
Solving with Ruby, Perl, Java and Python AtCoder ATC 002 B
Python starting with Hello world!
Behavior of division operators between integers (C, C ++, Scala, Java, Rust, Go, PHP, JavaScript, Perl, Python, Ruby)
Getting Started with Heroku-Viewing Hello World in Python Django with Raspberry PI 3
Python beginners tried Hello World in 30 seconds using the micro-framework Flask
Solving in Ruby, Python and Java AtCoder ABC141 D Priority Queuing
Solving with Ruby, Perl, Java, and Python AtCoder ABC 065 C factorial
[Swift / Ruby / Python / Java] Object-oriented programming
[AOJ] Descending sort in various languages
[Note] Hello world output with python
Ruby Python Java Case insensitive sorting
Hello World in Flask [Appropriate memo]
Python #Hello World for super beginners
Summary of how to write if statements (Scala, Java, Rust, C language, C ++, Go language, PHP, Perl, Python, Ruby)
Summary of how to write increment / decrement (Scala, Java, Rust, C, C ++, Go, PHP, Perl, Python, Ruby, JavaScript)
String literals in each language: single quotes, double quotes, interpolation, escape sequences (Java, JavaScript, Kotlin, PHP, Python, Ruby)
Solving with Ruby, Perl, Java and Python AtCoder ABC 107 B String Manipulation
Solving with Ruby, Perl, Java, and Python AtCoder AGC 033 A Breadth-first search
Solving with Ruby, Perl, Java, and Python AtCoder ARC 098 C Cumulative sum
Solving with Ruby, Perl, Java and Python AtCoder CADDi 2018 C Prime Factorization
Solving with Ruby, Perl, Java and Python AtCoder ABC 165 D Floor function
Solving with Ruby, Perl, Java and Python AtCoder ABC 131 D Array Sorting
Solve with Ruby, Perl, Java and Python AtCoder ABC 047 C Regular Expression
Overlapping regular expressions in Python and Java
[Python] Web application from 0! Hands-on (2) -Hello World-
Differences between Ruby and Python in scope
Realize PHP / Python generator with Golang / Ruby
Mosaic images in various shapes (Python, OpenCV)
Eating and comparing programming languages: Python and Ruby
Express Python yield in JavaScript or Java
Big difference in ruby, python, httpd performance
PHP / Python / Ruby sample hitting Path API
Obtaining temporary AWS credentials in PHP, Python
Differences in syntax between Python and Java
Summary of various for statements in Python
paiza POH paizen # paizahack_02 (Perl / PHP / Python)
Referencing INI files in Python or Ruby
[Basic grammar] Differences between Ruby / Python / PHP
Hash in Perl is a dictionary in Python
Hello world instead of localhost in Django