Add two numbers: 1 + 2 = 3
Subtract two numbers: 4 - 3 = 1
Divide two numbers: 10 / 5 = 2
Multiply two numbers: 5 * 6 = 30
Find word in string: En længere sætning & blah - pos:
Find longest word: En længere endnu sætning - længere
Character count: 17
Is string check: 123 is string
Is string check: 123 is not string
Array to string input: Array
(
[0] => Apple
[1] => Orange
[2] => Banana
)
Array to string output: AppleOrangeBanana
Sort numbers input: Array
(
[0] => 1
[1] => 4
[2] => 6
[3] => 2
[4] => 3
[5] => 5
[6] => 7
[7] => 9
[8] => 8
)
Sort numbers output: Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
[5] => 6
[6] => 7
[7] => 8
[8] => 9
)
Count digits: 6
Reverse sort strings input: Array
(
[0] => Builder
[1] => Artist
[2] => Engineer
[3] => Commander
)
Reverse sort strings output: Array
(
[0] => Engineer
[1] => Commander
[2] => Builder
[3] => Artist
)
Add to array input: Array
(
[0] => Apple
[1] => Cucumber
[2] => Carrot
)
Kiwi Add to array output: Array
(
[0] => Apple
[1] => Cucumber
[2] => Carrot
[3] => Kiwi
)
Merge arrays input: Array
(
[0] => Elephant
[1] => Monkey
)
Array
(
[0] => Lion
[1] => Tiger
)
Merge arrays output: Array
(
[0] => Elephant
[1] => Monkey
[2] => Lion
[3] => Tiger
)
Remove from array: Array
(
[0] => Wood
[1] => Stone
[2] => Cement
)
Remove from array output: Array
(
[0] => Stone
[1] => Cement
)
Remove specific element input: Array
(
[0] => Flower
[1] => Moss
[2] => Grass
)
Grass Remove specific element output: Array
(
[0] => Flower
[1] => Moss
)
Random from array input: Array
(
[0] => Red
[1] => Green
[2] => Blue
[3] => Yellow
[4] => Purple
[5] => Cyan
)
Random from array output: 1 Array
(
[0] => Red
[1] => Blue
[2] => Yellow
[3] => Purple
[4] => Cyan
)
Green
Shuffle array input: Array
(
[0] => Mouse
[1] => Keyboard
[2] => Monitor
[3] => PC
)
Shuffle array output Array
(
[0] => PC
[1] => Mouse
[2] => Keyboard
[3] => Monitor
)
Min max value input: Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
)
Min max value output: min 1 max 5
Count object properties input: Foo Object
(
[a:Foo:private] =>
[b] =>
[c] =>
)
array(2) {
["b"]=>
NULL
["c"]=>
NULL
}
Count object properties output: 2
List object properties input: Foo Object
(
[a:Foo:private] =>
[b] =>
[c] =>
)
List object properties output: Array
(
[b] =>
[c] =>
)
Circle area input: 30 Circle area output: 2826
Circle perimeter input: 30 Circle perimeter output: 188.4
Calculate price with vat input: 150 & 20% Calculate price with vat output: 180 & 30
Calculate remaining time input: 2005/03/21 00:00:00 & 2026/05/13 21:30:59Calculate remaining time output: +7723 days
Sum array input: Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 1
[5] => 2
[6] => 5
)
Sum array output: 18
Camel case to hyphens input: thisIsACamelCaseTestCamel case to hyphens output: this-is-a-camel-case-test
Hyphens to camel case input: this-is-a-camel-case-test Hyphens to camel case output: thisIsACamelCaseTest
Capitalize first input: many Capitalize first output: Many
Truncate string input: Hello hi how are you & 10 Truncate string output: Hello hi h...