<?php echo "Hello, World!" ?>ELF > € @ X7 @ 8 @ @ @ @ Ø Ø q q $ $ Ð- Ð= Ð= ` p à- à= à= à à 8 8 8 X X X D D Såtd 8 8 8 Påtd H H H , , Qåtd Råtd Ð- Ð= Ð= 0 0 /lib64/ld-linux-x86-64.so.2 GNU € À GNU Üúñ?·jKUhRÅûùrZÂTý GNU (ŒÑeÎm x F " ” 0 ? £ ) 0@ " __cxa_finalize __libc_start_main strcmp stdout __isoc99_scanf fwrite printf libc.so.6 GLIBC_2.7 GLIBC_2.2.5 GLIBC_2.34 _ITM_deregisterTMCloneTable __gmon_start__ _ITM_registerTMCloneTable M ii W ui a ´‘– m Ð= ` Ø= (@ (@ À? È? Ð? Ø? à? 0@ @ @ @ @ HƒìH‹Å/ H…ÀtÿÐHƒÄà ÿ5Ê/ ÿ%Ì/ @ ÿ%Ê/ h éàÿÿÿÿ%Â/ h éÐÿÿÿÿ%º/ h éÀÿÿÿÿ%²/ h é°ÿÿÿÿ%j/ f 1íI‰Ñ^H‰âHƒäðPTE1À1ÉH=Î ÿ/ ôf.„ @ H=y/ Hr/ H9øtH‹þ. H…Àt ÿà€ Ã€ H=I/ H5B/ H)þH‰ðHÁî?HÁøHÆHÑþtH‹Í. H…ÀtÿàfD À óú€= / u+UHƒ=ª. H‰åtH‹=æ. è)ÿÿÿèdÿÿÿÆå. ]à À óúéwÿÿÿUH‰åHƒì@H¸StringsIHºsForNoobH‰EÀH‰UÈfÇEÐs H‹–. H‰Áº ¾ HV H‰ÇèªþÿÿHEàH‰ÆHK H‰Ç¸ èþÿÿHEàHB H‰ÖH‰ÇèYþÿÿ…ÀxHEàH( H‰ÖH‰Çè?þÿÿ…À~FHEàH H‰ÖH‰Çè%þÿÿ…ÀuH H‰Ç¸ èýýÿÿë*Hþ H‰Ç¸ èçýÿÿëHè H‰Ç¸ èÑýÿÿ¸ Éà HƒìHƒÄà Password: DoYouEven%sCTF __dso_handle _init Correct! Try again! ;, Øïÿÿx (ðÿÿ 8ðÿÿH !ñÿÿ¸ zR x èïÿÿ" zR x $ XïÿÿP FJw€ ?;*3$" D €ïÿÿ \ aðÿÿý A†C ø ` M h Ð= Ø= õþÿo Ð È ½ è? ` À è Ø ûÿÿo þÿÿo ¨ ÿÿÿo ðÿÿo Ž ùÿÿo à= 6 F V f (@ GCC: (Debian 11.3.0-5) 11.3.0 ñÿ | ñÿ ° à 3 I 8@ U Ø= | ` ˆ Ð= § ñÿ ñÿ ! ñÿ » à= Ä H × è? í & 0@ [ @ 9 0@ @ h F Y @ f y ˆ (@ • ¤ @@ _ € " © 0@ µ i ý º Ó æ 0@ ò " ' Scrt1.o __abi_tag crtstuff.c deregister_tm_clones __do_global_dtors_aux completed.0 __do_global_dtors_aux_fini_array_entry frame_dummy __frame_dummy_init_array_entry zzz.c __FRAME_END__ _DYNAMIC __GNU_EH_FRAME_HDR _GLOBAL_OFFSET_TABLE_ __libc_start_main@GLIBC_2.34 _ITM_deregisterTMCloneTable stdout@GLIBC_2.2.5 _edata _fini printf@GLIBC_2.2.5 __data_start strcmp@GLIBC_2.2.5 __gmon_start__ __dso_handle _IO_stdin_used _end __bss_start main __isoc99_scanf@GLIBC_2.7 fwrite@GLIBC_2.2.5 __TMC_END__ _ITM_registerTMCloneTable __cxa_finalize@GLIBC_2.2.5 _init .symtab .strtab .shstrtab .interp .note.gnu.property .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt.got .text .fini .rodata .eh_frame_hdr .eh_frame .init_array .fini_array .dynamic .got.plt .data .bss .comment # 8 8 6 X X $ I | | W öÿÿo ( a È È i Ð Ð ½ q ÿÿÿo Ž Ž ~ þÿÿo ¨ ¨ @ è è Ø — B À À ` ¡ œ P § p p ° € € æ ¶ h h ¼ E Ä H H , Ò x x ¬ Ü Ð= Ð- è Ø= Ø- ô à= à- à « À? À/ ( ý è? è/ 8 @ 0 0@ 00 0 00 P0 À 4 - =6
Write, Run & Share PHP code online using OneCompiler's PHP online compiler for free. It's one of the robust, feature-rich online compilers for PHP language, running on the latest version 7. Getting started with the OneCompiler's PHP compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as PHP
and start coding.
OneCompiler's PHP online editor supports stdin and users can give inputs to programs using the STDIN textbox under the I/O tab. Following is a sample PHP program which takes name as input and prints hello message with your name.
<?php
fscanf(STDIN, "%s\n", $name);
echo "Hello ".$name.".\n";
?>
PHP(Hypertext Preprocessor) is widely used server sripting language by Rasmus Lerdorf in the year 1994.
In PHP, there is no need to explicitly declare variables to reserve memory space. When you assign a value to a variable, declaration happens automatically. Variables are case-sensitive in PHP.
$variable_name = value;
If, If-else, Nested-Ifs are used when you want to perform a certain set of operations based on conditional expressions.
if(conditional-expression){
//code
}
if(conditional-expression){
//code if condition is true
} else {
//code if condition is false
}
if(condition-expression1) {
//code if above condition is true
} elseif(condition-expression2){
//code if above condition is true
}
elseif(condition-expression3) {
//code if above condition is true
}
...
else {
//code if all the conditions are false
}
Switch is used to execute one set of statement from multiple conditions.
switch(conditional-expression) {
case value1:
// code if the above value is matched
break; // optional
case value2:
// code if the above value is matched
break; // optional
...
default:
// code to be executed when all the above cases are not matched;
}
For loop is used to iterate a set of statements based on a condition.
for(Initialization; Condition; Increment/decrement){
// code
}
// you can use any of the below syntax
foreach ($array as $element-value) {
//code
}
foreach ($array as $key => $element-value) {
//code
}
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
while(condition) {
// code
}
Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.
do {
// code
} while (condition);
Function is a sub-routine which contains set of statements. Usually functions are written when multiple calls are required to same set of statements which increases re-usuability and modularity.
function function_name(parameters) {
//code
}
function_name (parameters)