3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php use Foo as Bar; use const meh as DEH; define('meh', 10, true); class Foo { function __construct() { echo 1; } } echo meh;
Output for 5.6.30, 7.0.0 - 7.2.9
10
Output for hhvm-3.22.0
Warning: Case insensitive constant names are not supported in HipHop in /in/WYIoA on line -1 10
Output for hhvm-3.15.4 - 3.21.3
Warning: Case insensitive constant names are not supported in HipHop in /in/WYIoA on line 5 10