3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function display_artistika($int = 100) { for ($i = 0; $i <= $int; $i++) { if (three_and_five($i)) { echo "Inti"; }elseif (three($i) || five($i)) { echo "".three() ? 'Artistika' : 'Solusitama' .""; }else { echo $i; } } } function three_and_five($int) { return three($int) && five($int); } function three($int) { return ($int % 3) == 0; } function five($int) { return ($int % 5) == 0; } display_artistika(); function deret($int) { for ($i = 0; $i <= $int; $i++) { for ($j = 0; $j <= $i; $j++) { echo $j; } echo "\n"; } } deret(6); $a = [ "Inti" , "Artistika", "Solusitama"]; foreach ($a as $str) { echo $str; } function calculate_square($height=0, $width=0) { $f = fopen( 'php://stdin', 'r' ); echo "Tinggi :"; $height = (Int) fread(); echo "n"; echo "Lebar :"; $width = (Int) fread(); echo $height * $width; }
based on 8mj7j
Output for 7.1.0 - 7.2.0
Inti12 Fatal error: Uncaught ArgumentCountError: Too few arguments to function three(), 0 passed in /in/iaKBJ on line 9 and exactly 1 expected in /in/iaKBJ:21 Stack trace: #0 /in/iaKBJ(9): three() #1 /in/iaKBJ(32): display_artistika() #2 {main} thrown in /in/iaKBJ on line 21
Process exited with code 255.
Output for 5.4.9 - 7.0.20
Inti12 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika4 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika78 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika11 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika1314Inti1617 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika19 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika2223 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika26 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika2829Inti3132 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika34 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika3738 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika41 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika4344Inti4647 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika49 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika5253 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika56 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika5859Inti6162 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika64 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika6768 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika71 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika7374Inti7677 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika79 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika8283 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika86 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika8889Inti9192 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika94 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika9798 Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika Warning: Missing argument 1 for three(), called in /in/iaKBJ on line 9 and defined in /in/iaKBJ on line 21 Notice: Undefined variable: int in /in/iaKBJ on line 23 Artistika0 01 012 0123 01234 012345 0123456 IntiArtistikaSolusitama
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/iaKBJ on line 48
Process exited with code 255.