3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*function add($a, $b){ return $a + $b; } echo add(2,3); function subtract ($a, $b){ return $a - $b; } echo subtract(5,4); function concatenate($a, $b){ return $a . $b; } echo concatenate('Hello', 'Wie'); $arr = ['test', 'test2']; print_r($arr[0]);*/ function addToArray($arg1, $arg2){ //zum Array hinzufügen $arr2 = []; $arr2[] = $arg1; $arr2[] = $arg2; print_r($arr2); } addToArray('Hallo','Yoooo'); var_dump($existiertnicht); $existiertnicht[] = 'Test'; print_r($existiertnicht); echo $gibtsnicht + 9; //-- Objekt lööschen //unset($test): //-- Array löschen! // $test = null;

preferences:
82.47 ms | 402 KiB | 5 Q