3v4l.org

run code in 300+ PHP versions simultaneously
<?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; }
Output for git.master, git.master_jit, rfc.property-hooks
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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
27.99 ms | 401 KiB | 8 Q