3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo; define('Foo\\null', true, true); define('Foo\\false', true, true); define("Foo\\INF", 1337, true); echo 'null:';if (null) echo "TRUE";else echo "FALSE"; echo "\nfalse:";if (false) echo "TRUE";else echo "FALSE"; echo "\ntrue:";if (true) echo "TRUE";else echo "FALSE"; $n=9821730498712083740189204398190102983704192873481720384701892703498701827034897012897340817209384701982; $n*=$n; echo "\n2^5000:".$n;

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

Output for Array change keys
null:FALSE false:FALSE true:TRUE 2^5000:9.6466389989331E+205
Output for Lexical anon
null:FALSE false:FALSE true:TRUE 2^5000:9.6466389989331E+205
Output for Typed properties
null:FALSE false:FALSE true:TRUE 2^5000:9.6466389989331E+205

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