3v4l.org

run code in 300+ PHP versions simultaneously
<?php $info = array('coffee', 'brown', 'caffeine'); // Liste toutes les variables list($drink, $color, $power) = $info; echo "$drink is $color and $power makes it special.\n"; // Liste certaines variables list($drink, , $power) = $info; echo "$drink has $power.\n"; // Ou bien, n'utilisons que le troisième list( , , $power) = $info; echo "I need $power!\n"; // list() ne fonctionne pas avec les chaînes de caractères list($bar) = "abcde"; var_dump($bar); // NULL
Output for git.master, git.master_jit, rfc.property-hooks
coffee is brown and caffeine makes it special. coffee has caffeine. I need caffeine! NULL

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:
37.97 ms | 401 KiB | 8 Q