3v4l.org

run code in 300+ PHP versions simultaneously
<?php $points = 10; $rounds = 0; $array['spieler'] = array( array('bez' => 'Punkte', 'wert' => $points), array('bez' => 'Spielrunden', 'wert' => $rounds), ($rounds > 0? array('bez' => 'Punkte pro Runde', 'wert' => $points/$rounds) : array()), ); print_r($array);

preferences:
47.74 ms | 402 KiB | 5 Q