3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php list($x[], $x[], $x[], $x[1]) = ['azul', 'amarelo', 'vermelho', 'verde']; echo $x[3].'-'.$x[1].'-'.$x[2];
based on Dvjkd

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
Notice: Undefined offset: 3 in /in/7CcZJ on line 4 -verde-vermelho
Output for Arrow functions
Notice: Undefined offset: 3 in /in/7CcZJ on line 4 -verde-vermelho
Output for Object typehint
Notice: Undefined offset: 3 in /in/7CcZJ on line 4 -verde-vermelho
Output for Array change keys
Notice: Undefined offset: 3 in /in/7CcZJ on line 4 -verde-vermelho
Output for Lexical anon
Notice: Undefined offset: 3 in /in/7CcZJ on line 4 -verde-vermelho

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