3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i=2; const BIT_1 = 0; // compile time: heeds lexical grammar rules define('BIT_'.$i,1); // runtime: more flexibility in naming echo BIT_1,"\n"; echo BIT_2,"\n";
based on IOPjK