3v4l.org

run code in 200+ php & hhvm versions
<?php $x = 'test'; $z = 'w'; function char($char) {return $char;} echo "this is a ${trim(' '.++$z.char(' '))}";

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

Output for branch php-master+jit
this is a test
Output for branch php-master
this is a test
Output for Typed properties v2
this is a test
Output for Arrow functions
this is a test
Output for Object typehint
this is a test
Output for Array change keys
this is a test
Output for Lexical anon
this is a test

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