3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php const GIRL = 'mary'; $hello = "hello"; $world = "world"; $id = [ 'hipster' ]; $names['hans'] = 'hans'; $names[$id[0]] = 'hipster'; $names[GIRL] = 'mary'; $hipster = "I said '{$hello}' before the {$world} thought it was cool"; echo "{{$hipster}} said the {$names['hans']} the hipster to {$names[GIRL]} the {$names[$id[0]]}.";
based on dLRPC
Output for 5.4.0 - 7.2.0
{I said 'hello' before the world thought it was cool} said the hans the hipster to mary the hipster.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/ATJea on line 8
Process exited with code 255.